Fix ME Level Emitter buttons config and ME IO Port not respecting its redstone mode (#345)

This commit is contained in:
Stone
2023-12-27 22:53:46 -05:00
committed by GitHub
parent 82751e761e
commit 7747899e90
3 changed files with 26 additions and 6 deletions
@@ -19,6 +19,7 @@
package appeng.block.storage;
import appeng.api.config.Upgrades;
import appeng.api.util.AEPartLocation;
import appeng.block.AEBaseTileBlock;
import appeng.core.sync.GuiBridge;
@@ -67,7 +68,9 @@ public class BlockIOPort extends AEBaseTileBlock {
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block blockIn, BlockPos fromPos) {
final TileIOPort te = this.getTileEntity(world, pos);
if (te != null) {
te.updateRedstoneState();
if (te.getInstalledUpgrades(Upgrades.REDSTONE) != 0) {
te.updateRedstoneState();
}
}
}