Fix fastMatches
This commit is contained in:
parent
f4bcd6da82
commit
4a62951897
@ -47,7 +47,7 @@ archivesBaseName = 'kcauldron'
|
||||
ext.mcVersion = "1.7.10"
|
||||
ext.cauldronVersion = "3"
|
||||
ext.forgeVersion = "1403"
|
||||
ext.revision = "61"
|
||||
ext.revision = "62"
|
||||
version = "${mcVersion}-${cauldronVersion}.${forgeVersion}.${revision}"
|
||||
|
||||
launch4j {
|
||||
|
@ -156,7 +156,7 @@
|
||||
+ // Spigot start
|
||||
+ public static boolean fastMatches(ItemStack is1, ItemStack is2) {
|
||||
+ if (is1 == null && is2 == null) return true;
|
||||
+ if (is1 != null && is2 != null) return is1.stackSize == is1.stackSize && is1.field_151002_e == is2.field_151002_e && is1.itemDamage == is2.itemDamage;
|
||||
+ if (is1 != null && is2 != null) return is1.stackSize == is2.stackSize && is1.field_151002_e == is2.field_151002_e && is1.itemDamage == is2.itemDamage;
|
||||
+ return false;
|
||||
+ }
|
||||
+ // Spigot end
|
||||
|
Loading…
Reference in New Issue
Block a user