Skip to content

Commit

Permalink
Fix for #49
Browse files Browse the repository at this point in the history
Fixes #49
  • Loading branch information
socklessthing committed Aug 27, 2024
1 parent 731eaa4 commit faf689a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public boolean onBlockActivated(World world, int xCoord, int yCoord, int zCoord,
}

if (world.isRemote) {
spawnParticles(world, player, xCoord, yCoord + 1, zCoord);
//spawnParticles(world, player, xCoord, yCoord + 1, zCoord);

world.playAuxSFX( 2001, xCoord, yCoord, zCoord, Block.dirt.blockID ); //break sfx
}

return true;
Expand All @@ -53,6 +55,7 @@ public boolean onBlockActivated(World world, int xCoord, int yCoord, int zCoord,
}

private void spawnParticles(World world, EntityPlayer player, int xCoord, int yCoord, int zCoord) {

for (int i = 0; i < 3; ++i) {
world.spawnParticle("happyVillager",
(double) xCoord + player.rand.nextFloat(),
Expand Down

0 comments on commit faf689a

Please sign in to comment.