From d5445b44ef0fb471e144a5e03d910822352fee2a Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Fri, 28 Oct 2022 01:59:55 -0500 Subject: [PATCH] Fix matter upgrader clearing ownership (#75) --- .../mc/forge/projectexpansion/item/ItemMatterUpgrader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/cool/furry/mc/forge/projectexpansion/item/ItemMatterUpgrader.java b/src/main/java/cool/furry/mc/forge/projectexpansion/item/ItemMatterUpgrader.java index fd488c06..e36dd085 100644 --- a/src/main/java/cool/furry/mc/forge/projectexpansion/item/ItemMatterUpgrader.java +++ b/src/main/java/cool/furry/mc/forge/projectexpansion/item/ItemMatterUpgrader.java @@ -10,6 +10,7 @@ import moze_intel.projecte.api.capabilities.IKnowledgeProvider; import moze_intel.projecte.api.proxy.IEMCProxy; import net.minecraft.core.BlockPos; +import net.minecraft.nbt.CompoundTag; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.TranslatableComponent; import net.minecraft.world.InteractionResult; @@ -132,6 +133,7 @@ public InteractionResult onItemUseFirst(ItemStack stack, UseOnContext context) { newTile.owner = owner; newTile.ownerName = ownerName; newTile.emc = emc; + newTile.saveAdditional(new CompoundTag()); level.removeBlockEntity(pos); level.setBlockEntity(newTile); Util.markDirty(level, pos);