mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 03:26:44 +01:00
Fixed crash when teleporting
This commit is contained in:
parent
e6223c8de1
commit
430ee9a85e
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ public class UnicornTeleportAbility implements Ability<Pos> {
|
|||
|
||||
boolean airAbove = enterable(w, pos.up()) && enterable(w, pos.up(2));
|
||||
|
||||
if (exception(w, pos, player.getMaster())) {
|
||||
if (exception(w, pos, player.getMaster()) && ray.getType() == HitResult.Type.BLOCK) {
|
||||
Direction sideHit = ((BlockHitResult)ray).getSide();
|
||||
|
||||
if (player.getMaster().isSneaking()) {
|
||||
|
|
Loading…
Reference in a new issue