Skip to content

Commit

Permalink
Fix serialization of ClientboundCommandsPacket for command types RESO…
Browse files Browse the repository at this point in the history
…URCE_OR_TAG_KEY and RESOURCE_KEY. (#741)
  • Loading branch information
artnaseef authored Sep 5, 2023
1 parent 74de268 commit 3d7b15f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,10 @@ public void serialize(ByteBuf out, MinecraftCodecHelper helper) {
case TIME:
out.writeInt(((TimeProperties) node.getProperties()).getMin());
break;
case RESOURCE:
case RESOURCE_OR_TAG:
case RESOURCE_OR_TAG_KEY:
case RESOURCE:
case RESOURCE_KEY:
helper.writeString(out, ((ResourceProperties) node.getProperties()).getRegistryKey());
break;
default:
Expand Down

0 comments on commit 3d7b15f

Please sign in to comment.