fixed some freeze
This commit is contained in:
parent
d75d7a2c8f
commit
fea637db80
@ -417,7 +417,7 @@ public class SnowFight extends TeamGame
|
||||
//Convert to Ice
|
||||
for(Block block : UtilBlock.getInRadius(event.getEntity().getLocation(), size).keySet())
|
||||
{
|
||||
int i = 5;
|
||||
int i = 20;
|
||||
while (block.getY() > 0 && i>0)
|
||||
{
|
||||
if (block.getType() == Material.LADDER ||
|
||||
@ -427,7 +427,7 @@ public class SnowFight extends TeamGame
|
||||
|
||||
|
||||
//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);
|
||||
|
||||
//shuffle down
|
||||
|
Loading…
Reference in New Issue
Block a user