Skip to content

Commit

Permalink
Fixed CTD caused by ZombieHands unearthing in BoP Biomes
Browse files Browse the repository at this point in the history
  • Loading branch information
crazysnailboy committed Oct 8, 2017
1 parent 08f9f1b commit 5ac6850
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle.forge'


version = "0.9.1"
version = "0.9.2"
group = "net.crazysnailboy.mods.halloween"
archivesBaseName = "Halloween-1.10"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,14 @@ private void springEffect()

if (!(state.getBlock() instanceof BlockAir))
{
SoundType soundType = state.getBlock().getSoundType(null, null, null, null);
this.playSound(soundType.getStepSound(), soundType.getVolume(), soundType.getPitch());
try
{
SoundType soundType = state.getBlock().getSoundType(state, this.world, pos, this);
this.playSound(soundType.getStepSound(), soundType.getVolume(), soundType.getPitch());
}
catch(Exception ex)
{
}

for (int q = 0; q < 48; q++)
{
Expand Down

0 comments on commit 5ac6850

Please sign in to comment.