This commit is contained in:
fewizz committed 2015-10-04 17:24:26 +03:00
1 parent e9e8ef2455
commit 2fd7805c10
3 files changed
+3 -3

No files matched your search

@@ -149,7 +149,7 @@ public class ItemDiamondChainsaw extends ItemAxe implements IElectricItem {
audio.updatePosition();
audio.play();
}
} else if (!flag && audio != null) {
} else if (!flag && audio != null && ((((EntityPlayer)entity).inventory.getCurrentItem() != null && ((EntityPlayer)entity).inventory.getCurrentItem().getItem() != this) || (((EntityPlayer)entity).inventory.getCurrentItem() == null))) {
audio.stop();
audio.remove();
audio = null;
@@ -87,7 +87,7 @@ public class ItemStreamChainsaw extends ItemThaumiumChainsaw {
audio.updatePosition();
audio.play();
}
} else if (!flag && audio != null) {
} else if (!flag && audio != null && ((((EntityPlayer)entity).inventory.getCurrentItem() != null && ((EntityPlayer)entity).inventory.getCurrentItem().getItem() != this) || (((EntityPlayer)entity).inventory.getCurrentItem() == null))) {
audio.stop();
audio.remove();
audio = null;
@@ -41,7 +41,7 @@ public class ItemThaumiumChainsaw extends ItemDiamondChainsaw {
audio.updatePosition();
audio.play();
}
} else if (!flag && audio != null) {
} else if (!flag && audio != null && ((((EntityPlayer)entity).inventory.getCurrentItem() != null && ((EntityPlayer)entity).inventory.getCurrentItem().getItem() != this) || (((EntityPlayer)entity).inventory.getCurrentItem() == null))) {
audio.stop();
audio.remove();
audio = null;