Skip to content

Commit

Permalink
Make sure items won't get converted to server version on client while…
Browse files Browse the repository at this point in the history
… playing on the server
  • Loading branch information
Patbox committed Aug 21, 2023
1 parent 1fd0bc5 commit bb0ae5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fabric_version=0.83.0+1.20.1

maven_group = eu.pb4

mod_version = 0.5.12
mod_version = 0.5.13

minecraft_version_supported = ">=1.20-"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public abstract class PacketByteBufMixin {
if (item != null) {
return item.visualStack().copyWithCount(stack.getCount());
}
} else if (PolymerCommonUtils.isNetworkingThread()) {
} else if (PolymerCommonUtils.isNetworkingThread() && PolymerUtils.isSingleplayer()) {
return PolymerItemUtils.getRealItemStack(stack);
}

Expand Down

0 comments on commit bb0ae5b

Please sign in to comment.