mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-20 19:19:45 +00:00
Remove Sanity Check
This commit is contained in:
1 parent
260df4d8af
commit
44b731cf10
3 files changed
-8
No files matched your search
Binary file not shown.
@@ -11,7 +11,6 @@ import noppes.npcs.entity.EntityNPCInterface;
|
||||
import software.bernie.geckolib3.core.builder.AnimationBuilder;
|
||||
|
||||
public class GeckoAPI extends AbstractGeckoAPI {
|
||||
public static Side side = FMLCommonHandler.instance().getEffectiveSide();
|
||||
private static AbstractGeckoAPI Instance;
|
||||
|
||||
private GeckoAPI() {}
|
||||
|
||||
@@ -10,7 +10,6 @@ import net.minecraft.entity.player.EntityPlayerMP;
|
||||
|
||||
public final class NetworkHandler {
|
||||
private static final SimpleNetworkWrapper wrapper = new SimpleNetworkWrapper("npcgecko");
|
||||
private static Side side = FMLCommonHandler.instance().getSide();
|
||||
|
||||
public static void init() {
|
||||
wrapper.registerMessage(CPacketSyncAutoAnim.class, CPacketSyncAutoAnim.class, 0, Side.CLIENT);
|
||||
@@ -18,20 +17,14 @@ public final class NetworkHandler {
|
||||
}
|
||||
|
||||
public static void sendToPlayer(IMessage message, EntityPlayer player) {
|
||||
if(side.isClient())
|
||||
return;
|
||||
wrapper.sendTo(message, (EntityPlayerMP) player);
|
||||
}
|
||||
|
||||
public static void sendToAll(IMessage message) {
|
||||
if(side.isClient())
|
||||
return;
|
||||
wrapper.sendToAll(message);
|
||||
}
|
||||
|
||||
public static void sendToServer(IMessage message) {
|
||||
if(side.isServer())
|
||||
return;
|
||||
wrapper.sendToServer(message);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user