Added 1_16_R2 to the spigot jar

This commit is contained in:
ASangarin 2020-08-16 21:17:34 +02:00
parent 43724ead1f
commit 799f699647
7 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -39,7 +39,7 @@ public class Earthquake extends Ability {
@Override
public AbilityResult whenRan(CachedStats stats, LivingEntity target, AbilityData ability, ItemAttackResult result) {
return stats.getPlayer().isOnGround() ? new VectorAbilityResult(ability, stats.getPlayer(), target) : new SimpleAbilityResult(ability, false);
return ((LivingEntity) stats.getPlayer()).isOnGround() ? new VectorAbilityResult(ability, stats.getPlayer(), target) : new SimpleAbilityResult(ability, false);
}
@Override

View File

@ -28,7 +28,7 @@ public class Hoearthquake extends Ability {
@Override
public AbilityResult whenRan(CachedStats stats, LivingEntity target, AbilityData ability, ItemAttackResult result) {
return new SimpleAbilityResult(ability, stats.getPlayer().isOnGround());
return new SimpleAbilityResult(ability, ((LivingEntity) stats.getPlayer()).isOnGround());
}
@Override

View File

@ -26,7 +26,7 @@ public class Leap extends Ability {
@Override
public AbilityResult whenRan(CachedStats stats, LivingEntity target, AbilityData ability, ItemAttackResult result) {
return new SimpleAbilityResult(ability, stats.getPlayer().isOnGround());
return new SimpleAbilityResult(ability, ((LivingEntity) stats.getPlayer()).isOnGround());
}
@Override

View File

@ -36,7 +36,7 @@ public class Magical_Shield extends Ability {
@Override
public AbilityResult whenRan(CachedStats stats, LivingEntity target, AbilityData ability, ItemAttackResult result) {
return new SimpleAbilityResult(ability, stats.getPlayer().isOnGround());
return new SimpleAbilityResult(ability, ((LivingEntity) stats.getPlayer()).isOnGround());
}
@Override

View File

@ -40,7 +40,7 @@ public class Arcane_Rift extends Ability {
@Override
public AbilityResult whenRan(CachedStats stats, LivingEntity target, AbilityData ability, ItemAttackResult result) {
if (!stats.getPlayer().isOnGround())
if (!((LivingEntity) stats.getPlayer()).isOnGround())
return new SimpleAbilityResult(ability, false);
return new VectorAbilityResult(ability, stats.getPlayer(), target);