Skip to content

Commit ec9a165

Browse files
committed
Revert "tempfix: suppose bundle always changed"
This reverts commit de40169. Upstream fixed this
1 parent d371dae commit ec9a165

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/main/java/com/xzavier0722/mc/plugin/slimefun4/storage/util/InvStorageUtils.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import java.util.Objects;
1111
import java.util.Set;
1212
import org.bukkit.inventory.ItemStack;
13-
import org.bukkit.inventory.meta.BundleMeta;
1413

1514
public class InvStorageUtils {
1615
private static final Pair<ItemStack, Integer> emptyPair = new Pair<>(null, 0);
@@ -56,17 +55,6 @@ public static Set<Integer> getChangedSlots(List<Pair<ItemStack, Integer>> snapsh
5655
// fix: #1099 more strict difference check
5756
if (curr.getAmount() != each.getSecondValue() || !Objects.equals(curr, each.getFirstValue())) {
5857
re.add(i);
59-
continue;
60-
}
61-
62-
try {
63-
var currBundleMeta = (BundleMeta) curr.getItemMeta();
64-
var eachBundleMeta = (BundleMeta) each.getFirstValue().getItemMeta();
65-
if (currBundleMeta != null || eachBundleMeta != null) {
66-
re.add(i);
67-
}
68-
} catch (ClassCastException e) {
69-
continue;
7058
}
7159
}
7260

0 commit comments

Comments
 (0)