Mirror von
https://github.com/Moulberry/AxiomPaperPlugin.git
synchronisiert 2024-09-29 07:50:05 +02:00
Restore original code style
Dieser Commit ist enthalten in:
Ursprung
5a12999ad8
Commit
feb7e56bb6
@ -64,15 +64,15 @@ public class SwitchActiveHotbarPacketListener implements PluginMessageListener {
|
||||
}
|
||||
|
||||
if (stack.isEmpty()) {
|
||||
containerHotbarItems.remove(new NamespacedKey("axiom", "slot_" + index));
|
||||
containerHotbarItems.remove(new NamespacedKey("axiom", "slot_"+index));
|
||||
} 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;
|
||||
ItemStack hotbarItem = hotbarItems[i].clone();
|
||||
if (hotbarItem.isEmpty()) {
|
||||
containerHotbarItems.remove(new NamespacedKey("axiom", "slot_" + index));
|
||||
containerHotbarItems.remove(new NamespacedKey("axiom", "slot_"+index));
|
||||
} else {
|
||||
containerHotbarItems.set(new NamespacedKey("axiom", "slot_"+index), ItemStackDataType.INSTANCE, hotbarItem);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren