From a799905e5e8a88bff003ebc5e9ed442af11c5598 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sun, 9 Feb 2020 17:40:20 +0200 Subject: Make EmptyInventory.canPlayerUseInv return true, give nicer names to EmptyInventory parameters --- .../java/io/github/cottonmc/cotton/gui/EmptyInventory.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/io/github/cottonmc/cotton/gui/EmptyInventory.java b/src/main/java/io/github/cottonmc/cotton/gui/EmptyInventory.java index a80b5da..da54dda 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/EmptyInventory.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/EmptyInventory.java @@ -23,22 +23,22 @@ public class EmptyInventory implements Inventory { } @Override - public ItemStack getInvStack(int var1) { + public ItemStack getInvStack(int slot) { return ItemStack.EMPTY; } @Override - public ItemStack takeInvStack(int var1, int var2) { + public ItemStack takeInvStack(int slot, int count) { return ItemStack.EMPTY; } @Override - public ItemStack removeInvStack(int var1) { + public ItemStack removeInvStack(int slot) { return ItemStack.EMPTY; } @Override - public void setInvStack(int var1, ItemStack var2) { + public void setInvStack(int slot, ItemStack stack) { } @Override @@ -46,8 +46,8 @@ public class EmptyInventory implements Inventory { } @Override - public boolean canPlayerUseInv(PlayerEntity var1) { - return false; + public boolean canPlayerUseInv(PlayerEntity player) { + return true; } } -- cgit