fixed some freeze

This commit is contained in:
Cheese 2015-12-07 18:06:26 +11:00
parent d75d7a2c8f
commit fea637db80
1 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ public class SnowFight extends TeamGame
//Convert to Ice //Convert to Ice
for(Block block : UtilBlock.getInRadius(event.getEntity().getLocation(), size).keySet()) for(Block block : UtilBlock.getInRadius(event.getEntity().getLocation(), size).keySet())
{ {
int i = 5; int i = 20;
while (block.getY() > 0 && i>0) while (block.getY() > 0 && i>0)
{ {
if (block.getType() == Material.LADDER || if (block.getType() == Material.LADDER ||
@ -427,7 +427,7 @@ public class SnowFight extends TeamGame
//Has air above it //Has air above it
if (UtilBlock.solid(block) && UtilBlock.isVisible(block)) if ((UtilBlock.solid(block) && UtilBlock.isVisible(block)) || block.isLiquid())
block.setType(Material.PACKED_ICE); block.setType(Material.PACKED_ICE);
//shuffle down //shuffle down