mirror of
https://github.com/GTNewHorizons/waila.git
synced 2026-11-21 20:52:40 +00:00
Forgot to register the network handler...
This commit is contained in:
1 parent
a5e1a51972
commit
dfe3050167
3 files changed
+5
-2
No files matched your search
@@ -62,7 +62,8 @@ public class Waila {
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
ConfigHandler.instance().loadDefaultConfig(event);
|
||||
OverlayConfig.updateColors();
|
||||
MinecraftForge.EVENT_BUS.register(new DecoratorRenderer());
|
||||
MinecraftForge.EVENT_BUS.register(new DecoratorRenderer());
|
||||
WailaPacketHandler.INSTANCE.ordinal();
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package mcp.mobius.waila.network;
|
||||
|
||||
import mcp.mobius.waila.Waila;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
|
||||
@@ -7,6 +8,7 @@ import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
|
||||
public class NetworkHandler {
|
||||
@SubscribeEvent
|
||||
public void onPlayerLoggedIn(PlayerLoggedInEvent event){
|
||||
Waila.log.info(String.format("Player %s connected. Sending ping", event.player));
|
||||
WailaPacketHandler.INSTANCE.sendTo(new Message0x00ServerPing(), (EntityPlayerMP)event.player);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user