1
0
forked from xjboss/KCauldronX

Fix fastMatches

This commit is contained in:
Prototik 2015-05-15 00:01:27 +07:00
parent f4bcd6da82
commit 4a62951897
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ archivesBaseName = 'kcauldron'
ext.mcVersion = "1.7.10" ext.mcVersion = "1.7.10"
ext.cauldronVersion = "3" ext.cauldronVersion = "3"
ext.forgeVersion = "1403" ext.forgeVersion = "1403"
ext.revision = "61" ext.revision = "62"
version = "${mcVersion}-${cauldronVersion}.${forgeVersion}.${revision}" version = "${mcVersion}-${cauldronVersion}.${forgeVersion}.${revision}"
launch4j { launch4j {

View File

@ -156,7 +156,7 @@
+ // Spigot start + // Spigot start
+ public static boolean fastMatches(ItemStack is1, ItemStack is2) { + public static boolean fastMatches(ItemStack is1, ItemStack is2) {
+ if (is1 == null && is2 == null) return true; + 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; + return false;
+ } + }
+ // Spigot end + // Spigot end