Fix /gun being able to explode one block of bedrock. (Thanks goodlyay)

This commit is contained in:
UnknownShadow200 2016-03-29 16:40:14 +11:00
parent 4054de78c2
commit 68b6b546f7

View File

@ -103,7 +103,9 @@ namespace MCGalaxy.BlockPhysics {
bool force = false, TntWarsGame game = null) {
Random rand = new Random();
if ((lvl.physics < 2 || lvl.physics == 5) && !force) return;
lvl.AddUpdate(lvl.PosToInt(x, y, z), Block.tntexplosion, true);
int index = lvl.PosToInt(x, y, z);
if (index >= 0 && !Block.OPBlocks(lvl.blocks[index]))
lvl.AddUpdate(index, Block.tntexplosion, true);
Explode(lvl, x, y, z, size + 1, rand, -1, game);
Explode(lvl, x, y, z, size + 2, rand, 7, game);