You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.
I notice you have a method to check the client sided-ness of the world, and right now it looks like you have it to only be client sided for a toggle keybinding. Why not check for a remote world?
i.e.
if (player.worldObj.isRemote) {
PacketHandler.sendPacketToServer(new CustomPacketKeyPressed(keyBinding.keyDescription));
} else {
keyBoundItem.keyPressed(stack, player);
}
The text was updated successfully, but these errors were encountered:
I notice you have a method to check the client sided-ness of the world, and right now it looks like you have it to only be client sided for a toggle keybinding. Why not check for a remote world?
i.e.
if (player.worldObj.isRemote) {
PacketHandler.sendPacketToServer(new CustomPacketKeyPressed(keyBinding.keyDescription));
} else {
keyBoundItem.keyPressed(stack, player);
}
The text was updated successfully, but these errors were encountered: