Fixed Window placement dupe (#170).

This commit is contained in:
stfwi 2021-03-19 19:11:59 +01:00
parent 3a10a87ac0
commit 4f07f82e01
4 changed files with 7 additions and 3 deletions

View file

@ -69,6 +69,7 @@ public class EdWindowBlock extends DecorBlock.DirectedWaterLoggable implements I
.with(WATERLOGGED,world.getBlockState(pos.offset(d)).getFluidState().getFluid()==Fluids.WATER);
world.setBlockState(pos.offset(d), st, 1|2);
world.playSound(player, pos, SoundEvents.BLOCK_METAL_PLACE, SoundCategory.BLOCKS, 1f, 1f);
player.getHeldItem(hand).shrink(1);
}
);
return ActionResultType.func_233537_a_(world.isRemote());