translations for sidebuttons + basic sidebuttons for grid sorting

This commit is contained in:
Raoul Van den Berge
2015-12-20 18:45:16 +01:00
parent 62c5a1d82f
commit 9cb172e413
12 changed files with 111 additions and 77 deletions

View File

@@ -171,14 +171,14 @@ public class InventoryUtils {
}
public static boolean compareStack(ItemStack first, ItemStack second, int flags) {
if ((flags & COMPARE_NBT) == COMPARE_NBT) {
if (first.stackTagCompound != null && !first.stackTagCompound.equals(second.stackTagCompound)) {
if ((flags & COMPARE_DAMAGE) == COMPARE_DAMAGE) {
if (first.getItemDamage() != second.getItemDamage()) {
return false;
}
}
if ((flags & COMPARE_DAMAGE) == COMPARE_DAMAGE) {
if (first.getItemDamage() != second.getItemDamage()) {
if ((flags & COMPARE_NBT) == COMPARE_NBT) {
if (first.stackTagCompound != null && !first.stackTagCompound.equals(second.stackTagCompound)) {
return false;
}
}