Skip to content

Commit

Permalink
Apply spotless, fix using C++ style cast instead of Java, and move lo…
Browse files Browse the repository at this point in the history
…gic inside the Vambrace-specific block
  • Loading branch information
norbby42 committed May 13, 2024
1 parent 32d6297 commit f86ef42
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,8 @@ public void onItemTicked(EntityLivingBase living, ItemStack stack) {
}

if (stack.getItemDamage() == 3 && living.isOnLadder()) {
final bool isFlying = living instanceof EntityPlayer && (EntityPlayer)living.capabilities.isFlying;
if (!isFlying)
{
final boolean isFlying = living instanceof EntityPlayer && ((EntityPlayer) living).capabilities.isFlying;
if (!isFlying) {
if (living.isCollidedHorizontally) living.moveEntity(0, .25, 0);
else if (!living.isSneaking()) living.moveEntity(0, -.1875, 0);
}
Expand Down

0 comments on commit f86ef42

Please sign in to comment.