3
0
Mirror von https://github.com/Moulberry/AxiomPaperPlugin.git synchronisiert 2024-11-17 05:40:06 +01:00

Restore original code style

Dieser Commit ist enthalten in:
Barnaby 2024-06-23 21:14:06 +01:00
Ursprung 5a12999ad8
Commit feb7e56bb6

Datei anzeigen

@ -64,15 +64,15 @@ public class SwitchActiveHotbarPacketListener implements PluginMessageListener {
} }
if (stack.isEmpty()) { if (stack.isEmpty()) {
containerHotbarItems.remove(new NamespacedKey("axiom", "slot_" + index)); containerHotbarItems.remove(new NamespacedKey("axiom", "slot_"+index));
} else { } else {
containerHotbarItems.set(new NamespacedKey("axiom", "slot_" + index), ItemStackDataType.INSTANCE, stack); containerHotbarItems.set(new NamespacedKey("axiom", "slot_"+index), ItemStackDataType.INSTANCE, stack);
} }
} }
int index = activeHotbarIndex*9 + i; int index = activeHotbarIndex*9 + i;
ItemStack hotbarItem = hotbarItems[i].clone(); ItemStack hotbarItem = hotbarItems[i].clone();
if (hotbarItem.isEmpty()) { if (hotbarItem.isEmpty()) {
containerHotbarItems.remove(new NamespacedKey("axiom", "slot_" + index)); containerHotbarItems.remove(new NamespacedKey("axiom", "slot_"+index));
} else { } else {
containerHotbarItems.set(new NamespacedKey("axiom", "slot_"+index), ItemStackDataType.INSTANCE, hotbarItem); containerHotbarItems.set(new NamespacedKey("axiom", "slot_"+index), ItemStackDataType.INSTANCE, hotbarItem);
} }