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 17, 2023
1 parent 427d765 commit 0e8a60b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context)
upgrade = Objects.requireNonNull(upgradeTo.getPowerFlowerItem());
upgradeBlock = Objects.requireNonNull(upgradeTo.getPowerFlower());
if (be.owner == null) return ActionResultType.FAIL;
if (be.owner != player.getUUID()) {
if (!be.owner.equals(player.getUUID())) {
player.displayClientMessage(Lang.Items.MATTER_UPGRADER_NOT_OWNER.translateColored(TextFormatting.RED), true);
return ActionResultType.FAIL;
}
Expand All @@ -108,7 +108,7 @@ public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context)
upgrade = Objects.requireNonNull(upgradeTo.getEMCLinkItem());
upgradeBlock = Objects.requireNonNull(upgradeTo.getEMCLink());
if (be.owner == null) return ActionResultType.FAIL;
if (be.owner != player.getUUID()) {
if (!be.owner.equals(player.getUUID())) {
player.displayClientMessage(Lang.Items.MATTER_UPGRADER_NOT_OWNER.translateColored(TextFormatting.RED), true);
return ActionResultType.FAIL;
}
Expand Down

0 comments on commit 0e8a60b

Please sign in to comment.