Fix wonky function naming

This commit is contained in:
Ossian Winter 2021-01-27 15:22:56 +01:00
parent 792342610f
commit 64389cf664
No known key found for this signature in database
GPG Key ID: 1017BE95C68A39F9
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public final class GiveCommand extends Command {
}
}
final int slot = this.findEmptyhotbar();
final int slot = this.findEmptyHotbarSlot();
mc.player.connection.sendPacket(new CPacketCreativeInventoryAction(36 + (slot != -1 ? slot : mc.player.inventory.currentItem), itemStack));
Seppuku.INSTANCE.logChat("Gave you " + amount + " " + itemStack.getDisplayName());
} else {
@ -121,7 +121,7 @@ public final class GiveCommand extends Command {
return Item.REGISTRY.getObject(res);
}
private int findEmptyhotbar() {
private int findEmptyHotbarSlot() {
for (int i = 0; i < 9; i++) {
final ItemStack stack = Minecraft.getMinecraft().player.inventory.getStackInSlot(i);