Teleport player back when denying glide

This should help with #115
This commit is contained in:
isokissa3 2020-04-27 04:16:56 +03:00
parent 02b47224da
commit 7cd74edb2e
1 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,11 @@ public class EntityListenerOnePointNine implements Listener
event.setCancelled(true);
player.setGliding(state == ForcedState.FORCE);
if (state == ForcedState.DENY)
{
player.teleport(player.getLocation());
}
}
}
}