Skip to content

Commit

Permalink
fix ecoenchants compat
Browse files Browse the repository at this point in the history
  • Loading branch information
MWHunter committed May 14, 2023
1 parent 281196d commit 3f1f18e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void checkThatBukkitIsSynced(int slot) {
ItemStack existing = getItem(slot);
ItemStack toPE = SpigotConversionUtil.fromBukkitItemStack(bukkitItem);

if (!ItemStack.isSameItemSameTags(existing, toPE) || existing.getAmount() != toPE.getAmount()) {
if (existing.getType() != toPE.getType() || existing.getAmount() != toPE.getAmount()) {
FoliaCompatUtil.runTaskForEntity(player.bukkitPlayer,GrimAPI.INSTANCE.getPlugin(), () -> {
player.bukkitPlayer.updateInventory();
}, null, 0);
Expand Down

0 comments on commit 3f1f18e

Please sign in to comment.