Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

isClientSided method in KeyBindingHelper #506

Closed
ghost opened this issue Nov 30, 2013 · 0 comments
Closed

isClientSided method in KeyBindingHelper #506

ghost opened this issue Nov 30, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 30, 2013

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);
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants