Skip to content

Commit

Permalink
Merge pull request #12 from GTNewHorizons/fix-server-crash
Browse files Browse the repository at this point in the history
Move offline-check to init
  • Loading branch information
Dream-Master authored May 12, 2023
2 parents 7542aff + 48a1774 commit f2e3bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/katzenpapst/amunra/proxy/ServerProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import net.minecraft.server.MinecraftServer;

import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import de.katzenpapst.amunra.AmunRa;

public class ServerProxy extends ARSidedProxy {

@Override
public void preInit(final FMLPreInitializationEvent event) {
public void init(final FMLInitializationEvent event) {
try {
final MinecraftServer s = MinecraftServer.getServer();
if (s.isDedicatedServer() && !s.isServerInOnlineMode() && !AmunRa.isDevEnvironment()) {
Expand Down

0 comments on commit f2e3bdb

Please sign in to comment.