Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Removed debugging code
Dieser Commit ist enthalten in:
Ursprung
00099b5332
Commit
b0d39c587f
@ -120,10 +120,6 @@ public class JavaServerDeclareCommandsTranslator extends PacketTranslator<Server
|
||||
ParamInfo rootParam = new ParamInfo(commandNode, null);
|
||||
rootParam.buildChildren(allNodes);
|
||||
|
||||
if (commandNode.getName().equals("gamerule")) {
|
||||
GeyserConnector.getInstance().getLogger().debug("BREAK HERE");
|
||||
}
|
||||
|
||||
List<CommandParamData[]> treeData = rootParam.getTree();
|
||||
CommandParamData[][] params = new CommandParamData[treeData.size()][];
|
||||
|
||||
@ -263,7 +259,10 @@ public class JavaServerDeclareCommandsTranslator extends PacketTranslator<Server
|
||||
List<CommandParamData[]> treeParamData = new ArrayList<>();
|
||||
|
||||
for (ParamInfo child : children) {
|
||||
// Get the tree from the child
|
||||
List<CommandParamData[]> childTree = child.getTree();
|
||||
|
||||
// Un-pack the tree append the child node to it and push into the list
|
||||
for (CommandParamData[] subchild : childTree) {
|
||||
CommandParamData[] tmpTree = new ArrayList<CommandParamData>() {
|
||||
{
|
||||
@ -275,6 +274,7 @@ public class JavaServerDeclareCommandsTranslator extends PacketTranslator<Server
|
||||
treeParamData.add(tmpTree);
|
||||
}
|
||||
|
||||
// If we have no more child parameters just the child
|
||||
if (childTree.size() == 0) {
|
||||
treeParamData.add(new CommandParamData[] { child.getParamData() });
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren