Skip to content

Commit 30c5fc6

Browse files
committed
Add missing argument type
1 parent 2f8df1f commit 30c5fc6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

protocol/src/main/java/org/geysermc/mcprotocollib/protocol/data/game/command/CommandParser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public enum CommandParser {
4848
RESOURCE_OR_TAG_KEY,
4949
RESOURCE,
5050
RESOURCE_KEY,
51+
RESOURCE_SELECTOR,
5152
TEMPLATE_MIRROR,
5253
TEMPLATE_ROTATION,
5354
HEIGHTMAP,

protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/clientbound/ClientboundCommandsPacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public ClientboundCommandsPacket(ByteBuf in) {
136136
}
137137
case SCORE_HOLDER -> properties = new ScoreHolderProperties(in.readBoolean());
138138
case TIME -> properties = new TimeProperties(in.readInt());
139-
case RESOURCE_OR_TAG, RESOURCE_OR_TAG_KEY, RESOURCE, RESOURCE_KEY -> properties = new ResourceProperties(MinecraftTypes.readResourceLocation(in));
139+
case RESOURCE_OR_TAG, RESOURCE_OR_TAG_KEY, RESOURCE, RESOURCE_KEY, RESOURCE_SELECTOR -> properties = new ResourceProperties(MinecraftTypes.readResourceLocation(in));
140140
default -> {
141141
}
142142
}

0 commit comments

Comments
 (0)