mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-17 10:55:11 +00:00
Hotfix
This commit is contained in:
1 parent
e9e8ef2455
commit
2fd7805c10
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user