Should have fixed falling block explosions sometimes throwing exceptions

This commit is contained in:
xGamingDudex 2016-02-16 17:41:16 +01:00
parent 8893db60d7
commit 7645af8933

View File

@ -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);