Minor hourglass optimization. Closes #76

This commit is contained in:
Vincent Lee committed 2016-01-25 10:07:50 -06:00
1 parent 4926137ff0
commit a94a86b9ce
1 file changed
+2 -1
@@ -123,7 +123,8 @@ public class BlockHourglass extends BlockModContainer implements IManaTrigger, I
@Override
public void updateTick(World world, BlockPos pos, IBlockState state, Random rand) {
world.setBlockState(pos, state.withProperty(BotaniaStateProps.POWERED, false), 1 | 2);
if(state.getValue(BotaniaStateProps.POWERED))
world.setBlockState(pos, state.withProperty(BotaniaStateProps.POWERED, false), 1 | 2);
}
@Override