mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-22 04:52:28 +00:00
closes #60
onUnequip will now only be called once if a bauble is removed via shift-click
This commit is contained in:
1 parent
0a8eec22db
commit
45e6e3fe27
4 files changed
+8
-5
No files matched your search
@@ -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);
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user