Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Recommended Build 7.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dualspiral committed Dec 13, 2021
1 parent 01523a4 commit 4f9916f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SpongeCommon
10 changes: 10 additions & 0 deletions src/main/java/org/spongepowered/mod/SpongeMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
import org.objectweb.asm.Type;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.helpers.SubstituteLoggerFactory;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.block.BlockType;
import org.spongepowered.api.command.CommandManager;
Expand Down Expand Up @@ -407,6 +409,14 @@ public Certificate getSigningCertificate() {
@Subscribe
public void onPreInit(FMLPreInitializationEvent event) {
try {
// With later versions of forge for 1.12+ (2856+), slf4j may not
// have picked up on log4j 2.15. We try to do a manual override here.
if (LoggerFactory.getILoggerFactory().getClass() == SubstituteLoggerFactory.class) {

}

org.apache.logging.log4j.LogManager.getLogger().info("Log test");

SpongeImpl.getGame().getEventManager().registerListeners(SpongeImpl.getPlugin().getInstance().get(), SpongeInternalListeners.getInstance());
this.registerService(ChunkTicketManager.class, new SpongeChunkTicketManager());
SpongeBootstrap.initializeServices();
Expand Down

0 comments on commit 4f9916f

Please sign in to comment.