mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 14:17:29 -04:00
Fix /gun being able to explode one block of bedrock. (Thanks goodlyay)
This commit is contained in:
parent
4054de78c2
commit
68b6b546f7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user