Skip to content

Commit

Permalink
WB 3.1.3, now with yet another tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Jun 26, 2018
1 parent 42ff7fb commit 155a34c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public static void replace(EntityPlayer player, ItemStack backpack) {

Slot newSlot = new SlotBackpackWrapper(slot);
newSlot.slotNumber = slot.slotNumber;
player.inventoryContainer.inventorySlots.set(slot.slotNumber, newSlot);
return;
container.inventorySlots.set(slot.slotNumber, newSlot);
// Keep going, there may be more slots to fix!
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static boolean shouldKeepItem(Entity entity, ItemStack stack) {

// Ender IO: Check for Soulbound
// (at least when you stop rearranging items, that is)

/* Enchantment soulboundEnchantment = ForgeRegistries.ENCHANTMENTS.getValue(new ResourceLocation("enderio:soulbound"));
if (soulboundEnchantment != null && EnchantmentHelper.getEnchantmentLevel(soulboundEnchantment, stack) > 0) return true; */

Expand Down

0 comments on commit 155a34c

Please sign in to comment.