Small improvements to the Level Maintainer GUI (#283)

This commit is contained in:
Kogepan229 authored and GitHub committed 2025-04-19 10:41:29 -05:00
1 parent c724875af6
commit a4a5dcd9d8
3 files changed
+93 -71

No files matched your search

@@ -54,12 +54,6 @@ public class CPacketLevelMaintainer implements IMessage {
this.size = size;
}
public CPacketLevelMaintainer(Action action, int slotIndex, String size) {
this.action = action;
this.slotIndex = slotIndex;
this.size = size.isEmpty() ? 0 : Long.parseLong(size);
}
@Override
public void fromBytes(ByteBuf buf) {
this.action = Action.values()[buf.readInt()];