onUnequip will now only be called once if a bauble is removed via
shift-click
This commit is contained in:
Azanor committed 2014-08-20 10:52:59 +02:00
1 parent 0a8eec22db
commit 45e6e3fe27
4 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ public class Baubles {
public static final String MODID = "Baubles";
public static final String MODNAME = "Baubles";
public static final String VERSION = "1.0.1.4";
public static final String VERSION = "1.0.1.5";
@SidedProxy(clientSide = "baubles.client.ClientProxy", serverSide = "baubles.common.CommonProxy")
public static CommonProxy proxy;
@@ -260,9 +260,9 @@ public class ContainerPlayerExpanded extends Container
}
private void unequipBauble(ItemStack stack) {
if (stack.getItem() instanceof IBauble) {
((IBauble)stack.getItem()).onUnequipped(stack, thePlayer);
}
// if (stack.getItem() instanceof IBauble) {
// ((IBauble)stack.getItem()).onUnequipped(stack, thePlayer);
// }
}