make unlucky blocks less laggy

This commit is contained in:
ZXMushroom63 2024-12-09 11:25:00 +08:00
parent f600e3859a
commit 04325e6f4e

View File

@ -38,7 +38,7 @@
var blockpos = ModAPI.util.wrap($blockpos);
if (Math.random() < 1) { //was gonna add random events but couldn't be bothered. Enjoy exploding!
world.newExplosion(null, blockpos.getX() + 0.5, blockpos.getY() + 0.5,
blockpos.getZ() + 0.5, 9, 1, 1);
blockpos.getZ() + 0.5, 9, 1, 0);
}
return breakBlockMethod(this, $world, $blockpos, $blockstate);
}