Skip to content

Commit

Permalink
Fix network packet not being registered in all cases it is used
Browse files Browse the repository at this point in the history
* re #3895
* also, having to have client and server condig in sync for this is bad
  • Loading branch information
HenryLoenwind committed Dec 9, 2016
1 parent c50dc78 commit f963beb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/crazypants/enderio/item/ItemYetaWrench.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
public class ItemYetaWrench extends Item implements ITool, IConduitControl, IAdvancedTooltipProvider, IToolWrench {

public static ItemYetaWrench create() {
if (Config.useSneakMouseWheelYetaWrench) {
PacketHandler.INSTANCE.registerMessage(YetaWrenchPacketProcessor.class, YetaWrenchPacketProcessor.class, PacketHandler.nextID(), Side.SERVER);
}
PacketHandler.INSTANCE.registerMessage(YetaWrenchPacketProcessor.class, YetaWrenchPacketProcessor.class, PacketHandler.nextID(), Side.SERVER);
ItemYetaWrench result = new ItemYetaWrench();
GameRegistry.register(result);
return result;
Expand Down

0 comments on commit f963beb

Please sign in to comment.