Skip to content

Commit

Permalink
Fix alloyer UI closing when a neighbor block updates
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed May 1, 2022
1 parent 99648c6 commit 2632346
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import lombok.Setter;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraftforge.common.util.LazyOptional;
Expand All @@ -16,7 +15,6 @@
import net.minecraftforge.fluids.capability.IFluidHandler.FluidAction;
import net.minecraftforge.fluids.capability.templates.EmptyFluidHandler;
import slimeknights.mantle.block.entity.MantleBlockEntity;
import slimeknights.mantle.inventory.BaseContainerMenu;
import slimeknights.mantle.util.WeakConsumerWrapper;
import slimeknights.tconstruct.common.TinkerTags;
import slimeknights.tconstruct.library.recipe.alloying.IMutableAlloyTank;
Expand Down Expand Up @@ -165,15 +163,6 @@ private void checkTanks() {
}
}
needsRefresh = false;

// close the UI for any players in this UI
if (!world.isClientSide) {
for (Player player : world.players()) {
if (player.containerMenu instanceof BaseContainerMenu<?> base && base.getTile() == parent) {
player.closeContainer();
}
}
}
}
}

Expand Down

0 comments on commit 2632346

Please sign in to comment.