Skip to content

Commit

Permalink
feat: sync protocol lib changes
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Oct 21, 2024
1 parent 98ea904 commit 4f0918f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/src/main/java/org/allaymc/api/pack/Pack.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public ResourcePacksInfoPacket.Entry toEntryInfo() {
this.getType() == Pack.Type.SCRIPT,
this.manifest.getCapabilities().contains(PackManifest.Capability.RAYTRACED),
false,
""
null
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ protected String processArg(String arg) {
@Override
public CommandParamData toNetworkData() {
var data = super.toNetworkData();
// This is a mistake by protocol library
// TODO: change back to COMMAND when protocol library fixes it
data.setType(CommandParam.CODE_BUILDER_ARGS);
data.setType(CommandParam.COMMAND);
return data;
}

Expand Down

0 comments on commit 4f0918f

Please sign in to comment.