Fix wonky function naming

This commit is contained in:
Ossian Winter 2021-01-27 15:21:36 +01:00
parent 2aa414d96d
commit b2dd0077f8
No known key found for this signature in database
GPG Key ID: 1017BE95C68A39F9
1 changed files with 2 additions and 2 deletions

View File

@ -42,13 +42,13 @@ public final class CrashSlimeCommand extends Command {
entityTag.setInteger("Size", Integer.MAX_VALUE);
itemStack.setTagCompound(tagCompound);
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 a crash slime spawn egg");
}
private int findEmptyhotbar() {
private int findEmptyHotbarSlot() {
for (int i = 0; i < 9; i++) {
final ItemStack stack = Minecraft.getMinecraft().player.inventory.getStackInSlot(i);