Fixed spiders climbing liquids
This commit is contained in:
parent
ea30645d42
commit
6f8d39b630
@ -71,7 +71,7 @@ public class PerkSpiderLeap extends Perk
|
|||||||
|
|
||||||
for (Block block : UtilBlock.getSurrounding(player.getLocation().getBlock(), true))
|
for (Block block : UtilBlock.getSurrounding(player.getLocation().getBlock(), true))
|
||||||
{
|
{
|
||||||
if (!UtilBlock.airFoliage(block))
|
if (!UtilBlock.airFoliage(block) && !block.isLiquid())
|
||||||
{
|
{
|
||||||
player.setVelocity(new Vector(0,0.2,0));
|
player.setVelocity(new Vector(0,0.2,0));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user