mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-24 05:44:39 +00:00
Fixed #37
This commit is contained in:
1 parent
bfc118fb61
commit
778945ce5e
1 file changed
+3
@@ -129,6 +129,9 @@ public class InventoryBaubles implements IInventory {
|
||||
*/
|
||||
@Override
|
||||
public void setInventorySlotContents(int par1, ItemStack stack) {
|
||||
if(this.stackList[par1] != null) {
|
||||
((IBauble)stackList[par1].getItem()).onUnequipped(stackList[par1], player.get());
|
||||
}
|
||||
this.stackList[par1] = stack;
|
||||
if (stack !=null && stack.getItem() instanceof IBauble) {
|
||||
((IBauble)stack.getItem()).onEquipped(stack, player.get());
|
||||
|
||||
Reference in new issue
Block a user