mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 04:20:02 +03:00
21 lines
1.3 KiB
Diff
21 lines
1.3 KiB
Diff
--- ../src-base/minecraft/net/minecraft/item/ItemSlab.java
|
|
+++ ../src-work/minecraft/net/minecraft/item/ItemSlab.java
|
|
@@ -64,7 +64,7 @@
|
|
|
|
if (axisalignedbb != Block.NULL_AABB && worldIn.checkNoEntityCollision(axisalignedbb.offset(pos)) && worldIn.setBlockState(pos, iblockstate1, 11))
|
|
{
|
|
- SoundType soundtype = this.doubleSlab.getSoundType();
|
|
+ SoundType soundtype = this.doubleSlab.getSoundType(iblockstate1, worldIn, pos, player);
|
|
worldIn.playSound(player, pos, soundtype.getPlaceSound(), SoundCategory.BLOCKS, (soundtype.getVolume() + 1.0F) / 2.0F, soundtype.getPitch() * 0.8F);
|
|
itemstack.shrink(1);
|
|
|
|
@@ -124,7 +124,7 @@
|
|
|
|
if (axisalignedbb != Block.NULL_AABB && worldIn.checkNoEntityCollision(axisalignedbb.offset(pos)) && worldIn.setBlockState(pos, iblockstate1, 11))
|
|
{
|
|
- SoundType soundtype = this.doubleSlab.getSoundType();
|
|
+ SoundType soundtype = this.doubleSlab.getSoundType(iblockstate1, worldIn, pos, player);
|
|
worldIn.playSound(player, pos, soundtype.getPlaceSound(), SoundCategory.BLOCKS, (soundtype.getVolume() + 1.0F) / 2.0F, soundtype.getPitch() * 0.8F);
|
|
stack.shrink(1);
|
|
}
|