diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-08-25 16:41:13 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-08-25 16:41:13 -0400 |
commit | d7ca24feedb3ec7226c2832da48bf9f5b1df8054 (patch) | |
tree | 867696fa07b70556a685c12386f9341c0199800e /src/main/java/me/Danker/TheMod.java | |
parent | 09462affe26d0b9d6d460d062f7dfe9c9d09df4b (diff) | |
download | SkyblockMod-d7ca24feedb3ec7226c2832da48bf9f5b1df8054.tar.gz SkyblockMod-d7ca24feedb3ec7226c2832da48bf9f5b1df8054.tar.bz2 SkyblockMod-d7ca24feedb3ec7226c2832da48bf9f5b1df8054.zip |
Fix pet colour when chest isn't 6 rows
Diffstat (limited to 'src/main/java/me/Danker/TheMod.java')
-rw-r--r-- | src/main/java/me/Danker/TheMod.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/TheMod.java b/src/main/java/me/Danker/TheMod.java index 454cb9c..770a77d 100644 --- a/src/main/java/me/Danker/TheMod.java +++ b/src/main/java/me/Danker/TheMod.java @@ -41,9 +41,7 @@ import me.Danker.handlers.TextRenderer; import me.Danker.utils.Utils; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.EntityPlayerSP; -import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.inventory.GuiChest; -import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.settings.KeyBinding; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.event.ClickEvent; @@ -1460,7 +1458,7 @@ public class TheMod } else { colour = 0xBFFEBBD1; // Pink } - Utils.drawOnSlot(slot.xDisplayPosition, slot.yDisplayPosition, colour); + Utils.drawOnSlot(inventory.inventorySlots.inventorySlots.size(), slot.xDisplayPosition, slot.yDisplayPosition, colour); } } } |