Skip to content

Commit

Permalink
Emitter Fix
Browse files Browse the repository at this point in the history
Fixed emitter not responding to a redstone signal
  • Loading branch information
TechDweebGaming committed Dec 13, 2019
1 parent 7d4e8eb commit 0dacdeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public BluestoneEmitterTileEntity() {

@Override
public void tick() {
if(world.isBlockPowered(pos) != getBlockState().get(BluestoneEmitter.ENABLED)) world.setBlockState(pos, getBlockState().with(BluestoneEmitter.ENABLED, !world.isBlockPowered(pos)));
if(world.isBlockPowered(pos) == getBlockState().get(BluestoneEmitter.ENABLED)) world.setBlockState(pos, getBlockState().with(BluestoneEmitter.ENABLED, !world.isBlockPowered(pos)));
super.tick();
}

Expand Down

0 comments on commit 0dacdeb

Please sign in to comment.