Prevent casting fangs directly down or up

This commit is contained in:
Electroblob77
2020-06-30 00:02:49 +01:00
parent 0400e9276d
commit c9735e9a98
@@ -54,6 +54,8 @@ public class Fangs extends Spell {
protected boolean spawnFangs(World world, Vec3d origin, Vec3d direction, @Nullable EntityLivingBase caster, SpellModifiers modifiers){
if(direction.lengthSquared() == 0) return false; // Prevent casting directly down/up
boolean flag = false;
if(world.isRemote){