Fixes #1465 faulty item comparison
This commit is contained in:
@@ -1858,15 +1858,15 @@ public class Platform
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean isSameItemType( ItemStack ol, ItemStack op )
|
||||
public static boolean isSameItemType( ItemStack that, ItemStack other )
|
||||
{
|
||||
if( ol != null && op != null && ol.getItem() == op.getItem() )
|
||||
if( that != null && other != null && that.getItem() == other.getItem() )
|
||||
{
|
||||
if( ol.isItemStackDamageable() )
|
||||
if( that.isItemStackDamageable() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return ol.getItemDamage() == ol.getItemDamage();
|
||||
return that.getItemDamage() == other.getItemDamage();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user