mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-26 23:03:18 +00:00
Fixed MP-Server crash (NoClassDefFoundError)
This commit is contained in:
1 parent
924d305c56
commit
256369bad0
3 files changed
+7
-1
No files matched your search
@@ -3,6 +3,8 @@ package makeo.gadomancy.common.network.packets;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
|
||||
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -55,6 +57,7 @@ public class PacketAnimationAbsorb implements IMessage, IMessageHandler<PacketAn
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IMessage onMessage(PacketAnimationAbsorb p, MessageContext ctx) {
|
||||
Block b = Minecraft.getMinecraft().theWorld.getBlock(p.targetX, p.targetY, p.targetZ);
|
||||
int md = Minecraft.getMinecraft().theWorld.getBlockMetadata(p.targetX, p.targetY, p.targetZ);
|
||||
|
||||
@@ -40,7 +40,7 @@ public class RegisteredIntegrations {
|
||||
Object integration;
|
||||
try {
|
||||
integration = Injector.getClass(clazz).newInstance();
|
||||
} catch (Exception e) {//InstantiationException | IllegalAccessException
|
||||
} catch (Throwable e) {//InstantiationException | IllegalAccessException
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package makeo.gadomancy.common.research;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -53,6 +55,7 @@ public class PseudoResearchItem extends SimpleResearchItem {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean isHidden() {
|
||||
EntityPlayer p = Minecraft.getMinecraft().thePlayer;
|
||||
if(p != null) {
|
||||
|
||||
Reference in new issue
Block a user