Should have fixed falling block explosions sometimes throwing exceptions
This commit is contained in:
parent
8893db60d7
commit
7645af8933
@ -358,7 +358,7 @@ public class CustomExplosion extends Explosion
|
||||
{
|
||||
List<org.bukkit.block.Block> blocks = new ArrayList<>(event.GetBlocks());
|
||||
|
||||
if (blocks.size() > _maxFallingBlocks)
|
||||
if (blocks.size() > _maxFallingBlocks && _maxFallingBlocks >= 0)
|
||||
{
|
||||
Collections.shuffle((ArrayList) blocks);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user