update type to a primitive where possible

This commit is contained in:
chill committed 2023-06-18 12:06:54 +02:00
1 parent 673f37a1ec
commit 87baa5963f
2 files changed
+2 -2

No files matched your search

@@ -204,7 +204,7 @@ public class GuiBloodInfuser extends GuiContainer {
int k = 0;
if (this.topOut == 38) {
for (int index = 0; index < this.cachedEffects.tagCount(); ++index) {
final Byte id = this.cachedEffects.getCompoundTagAt(index).getByte("Id");
final byte id = this.cachedEffects.getCompoundTagAt(index).getByte("Id");
if (id < 0 || id >= Potion.potionTypes.length) continue;
final Potion potion = Potion.potionTypes[id];
if (potion != null) {
@@ -155,7 +155,7 @@ public class LensManager {
final HashMap<Integer, Integer> pouches) {
for (int value : pouches.values()) {
final IInventory baubles = BaublesApi.getBaubles(player);
final Integer pouchslot = (Integer) value;
final int pouchslot = (Integer) value;
ItemStack pouch;
if (pouchslot >= 0) {
pouch = player.inventory.mainInventory[pouchslot];