Posted December 30, 20186 yr Hi, I'm creating a new mod that adds some armor and one of them adds some effects, but when I put it on a server, it crashes. net.minecraft.util.ReportedException: Ticking player at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:500) ~[EntityPlayerMP.class:?] at net.minecraft.network.NetHandlerPlayServer.update(NetHandlerPlayServer.java:185) ~[NetHandlerPlayServer.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.update(NetworkDispatcher.java:212) ~[NetworkDispatcher$1.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:307) ~[NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:197) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:865) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:415) [DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_111] Caused by: java.lang.NoSuchMethodError: net.minecraft.entity.player.InventoryPlayer.armorItemInSlot(I)Lnet/minecraft/item/ItemStack; at com.MarcoPlay00.diaernumMod.object.items.armor.BluraniumArmor.onArmorTick(BluraniumArmor.java:62) ~[BluraniumArmor.class:?] at net.minecraft.entity.player.InventoryPlayer.decrementAnimations(InventoryPlayer.java:413) ~[InventoryPlayer.class:?] at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:575) ~[EntityPlayer.class:?] at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2397) ~[EntityLivingBase.class:?] at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:272) ~[EntityPlayer.class:?] at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:423) ~[EntityPlayerMP.class:?] ... 9 more
December 30, 20186 yr 1 hour ago, MarcoPlay00 said: Caused by: java.lang.NoSuchMethodError: net.minecraft.entity.player.InventoryPlayer.armorItemInSlot(I)Lnet/minecraft/item/ItemStack; The method cannot be found on the server wherever you are calling this method try setting it to be @SideOnly(Side.CLIENT) and see if that fixes. some src code would be nice so we can check you code Edited December 30, 20186 yr by Discult
December 31, 20186 yr Author On 12/30/2018 at 5:50 PM, Discult said: The method cannot be found on the server wherever you are calling this method try setting it to be @SideOnly(Side.CLIENT) and see if that fixes. some src code would be nice so we can check you code Thanks, I solved the problem
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.