Skip to content

Commit 4b01b1d

Browse files
committed
Handle remaining item blocks
1 parent 606fcb1 commit 4b01b1d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/mod/acgaming/extrasounds/sound/ESSoundManager.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import net.minecraft.client.audio.PositionedSoundRecord;
77
import net.minecraft.init.SoundEvents;
88
import net.minecraft.item.ItemArmor;
9+
import net.minecraft.item.ItemBlock;
910
import net.minecraft.item.ItemFood;
1011
import net.minecraft.item.ItemStack;
1112
import net.minecraft.util.SoundEvent;
@@ -86,14 +87,19 @@ else if (checkOreDictPrefix(i, "dust"))
8687
}
8788
else if (checkOreDictPrefix(i, "snow"))
8889
{
89-
playSound(SoundEvents.BLOCK_SNOW_BREAK, 2.0F, (float) ESConfig.soundVolume.esPickPlaceSnowSound);
90+
playSound(SoundEvents.BLOCK_SNOW_HIT, 2.0F, (float) ESConfig.soundVolume.esPickPlaceSnowSound);
9091
}
9192
else
9293
{
9394
playSound(SoundEvents.BLOCK_STONE_HIT, 2.0F, (float) ESConfig.soundVolume.esPickPlaceDefaultSound);
9495
}
9596
}
9697
}
98+
else if (stackIn.getItem() instanceof ItemBlock)
99+
{
100+
ItemBlock itemBlock = (ItemBlock) stackIn.getItem();
101+
playSound(itemBlock.getBlock().getSoundType().getHitSound(), 2.0F, (float) ESConfig.soundVolume.esPickPlaceDefaultSound);
102+
}
97103
else if (stackIn.getItem() instanceof ItemFood)
98104
{
99105
playSound(SoundEvents.BLOCK_SLIME_STEP, 2.0F, (float) ESConfig.soundVolume.esPickPlaceFoodSound);

0 commit comments

Comments
 (0)