Skip to content

Commit

Permalink
Updated Common Network version
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Apr 23, 2024
1 parent 3a8dfa8 commit b835964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ public static PacketUseItem decode(FriendlyByteBuf buf) {
}

public static void handle(PacketContext<PacketUseItem> ctx) {
ServerPlayer player = ctx.sender();

if (player != null) {
if (ctx.sender() instanceof ServerPlayer player) {
ItemStack slotStack = player.getInventory().getItem(ctx.message().slot);
ItemStack heldSaved = player.getMainHandItem();
InteractionHand hand = InteractionHand.MAIN_HAND;
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ neoforge_version=20.4.223
neoforge_loader_version_range=[1,)

# Libs
common_networking=1.0.6
common_networking=1.0.8
forge_config_api_port=20.4.3

# Gradle
Expand Down

0 comments on commit b835964

Please sign in to comment.