Skip to content

Commit

Permalink
Fix matter upgrader failing after world reload
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Oct 12, 2023
1 parent 7618b38 commit d9acd1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public InteractionResult onItemUseFirst(ItemStack stack, UseOnContext context) {
upgrade = Objects.requireNonNull(upgradeTo.getPowerFlowerItem());
upgradeBlock = Objects.requireNonNull(upgradeTo.getPowerFlower());
if (be.owner == null) return InteractionResult.FAIL;
if (be.owner != player.getUUID()) {
if (!be.owner.equals(player.getUUID())) {
player.displayClientMessage(Lang.Items.MATTER_UPGRADER_NOT_OWNER.translateColored(ChatFormatting.RED), true);
return InteractionResult.FAIL;
}
Expand Down

0 comments on commit d9acd1b

Please sign in to comment.