Skip to content

Commit

Permalink
Marked packets as handled
Browse files Browse the repository at this point in the history
  • Loading branch information
fuj1n committed Sep 23, 2019
1 parent a4e4b79 commit b59911d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Expand Up @@ -36,6 +36,8 @@ public static void handle(final ClientSetCursorStackPacket msg, Supplier<Network
context.enqueueWork(() -> {
player.inventory.setItemStack(msg.stack);
});

context.setPacketHandled(true);
}
}
}
Expand Up @@ -47,6 +47,8 @@ public static void handle(final ServerReopenUiPacket msg, Supplier<NetworkEvent.
PacketHandler.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) player), new ClientSetCursorStackPacket(cursorStack));
}
});

context.setPacketHandled(true);
}
}
}
Expand Up @@ -53,6 +53,8 @@ public static void handle(final UpdatePlaceDirectionPacket msg, Supplier<Network
if(te instanceof IPlaceDirection)
((IPlaceDirection)te).setPlaceDirection(msg.direction);
});

context.setPacketHandled(true);
}
}
}

0 comments on commit b59911d

Please sign in to comment.