mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Fix more ItemStack issues
This commit is contained in:
1 parent
cf6a04a65d
commit
6eb8e59f3c
68 files changed
+207
-211
No files matched your search
@@ -177,7 +177,7 @@ public class VoiceConnection extends Thread
|
||||
|
||||
public boolean canListen(int channel, ItemStack itemStack)
|
||||
{
|
||||
if(itemStack != null)
|
||||
if(!itemStack.isEmpty())
|
||||
{
|
||||
if(itemStack.getItem() instanceof ItemWalkieTalkie)
|
||||
{
|
||||
@@ -198,7 +198,7 @@ public class VoiceConnection extends Thread
|
||||
{
|
||||
ItemStack itemStack = getPlayer().inventory.getCurrentItem();
|
||||
|
||||
if(itemStack != null)
|
||||
if(!itemStack.isEmpty())
|
||||
{
|
||||
ItemWalkieTalkie walkieTalkie = (ItemWalkieTalkie)itemStack.getItem();
|
||||
|
||||
|
||||
Reference in new issue
Block a user