Restrict cloud-walking enchants to magic users when walking on cloud blocks

This commit is contained in:
Sollace 2019-04-04 12:27:04 +02:00
parent b68313646f
commit 5b18c7c0f6

View file

@ -27,7 +27,7 @@ public enum CloudType {
}
return Predicates.INTERACT_WITH_CLOUDS.test((EntityPlayer)e)
|| EntityCloud.getFeatherEnchantStrength((EntityPlayer)e) > 0;
|| (Predicates.MAGI.test(e) && EntityCloud.getFeatherEnchantStrength((EntityPlayer)e) > 0);
}
if (e instanceof EntityItem) {