Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Commit

Permalink
Hopefully fixes bug where when changing dimensions on a server you wo…
Browse files Browse the repository at this point in the history
…uld get kicked for flying when flying with the ring.
  • Loading branch information
jamesbirtles committed May 25, 2015
1 parent a049679 commit 17290c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tasks.withType(JavaCompile) {
targetCompatibility = "1.7"
}

version = "1.7.10-1.1.0-beta1"
version = "1.7.10-1.1.0-beta2"
group= "com.baublelicious"
archivesBaseName = "baublelicious"

Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/baublelicious/items/ItemFlyingRing.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ private void stopFlying(EntityPlayer player) {
player.sendPlayerAbilities();
}
}

@Override
public void onWornTick(ItemStack stack, EntityLivingBase entity) {
if (entity instanceof EntityPlayer) {
EntityPlayer player = ((EntityPlayer) entity);
if (!player.capabilities.allowFlying) {
startFlying(player);
}
}
}
}


Expand Down

0 comments on commit 17290c2

Please sign in to comment.