Posted 28 July 2012 - 11:52 AM
Hello,
When I use an item on a Monitor in SMP the onItemUse method get's only called on the server not on the client. But when I use the Item on a Block of Dirt the method get's called on both. This is the code:
it's the same for client and Server.
Why get's the method not called on the client? I don't want to handle any logic I only want to add a message to the clients chat (only for the player using the item).
When I use an item on a Monitor in SMP the onItemUse method get's only called on the server not on the client. But when I use the Item on a Block of Dirt the method get's called on both. This is the code:
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer Player, World World, int x, int y, int z, int par7)
{
System.out.println("test");
return false;
}
it's the same for client and Server.
Why get's the method not called on the client? I don't want to handle any logic I only want to add a message to the clients chat (only for the player using the item).