Skip to content

Commit

Permalink
Another attempt at #4568
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Jan 16, 2024
1 parent 91585ce commit 1330c99
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,17 @@ public void onTeleport(ZEntityTeleport event) {
return;

List<BlockPos> myalite = getAdjacentMyalite(null, world, pos, null);

if(myalite == null || myalite.isEmpty()) {
pos = pos.below();
myalite = getAdjacentMyalite(null, world, pos, null);
}

if(myalite == null || myalite.isEmpty()) {
pos = pos.relative(event.getEntity().getDirection());
myalite = getAdjacentMyalite(null, world, pos, null);
}

if(myalite != null && !myalite.isEmpty()) {
BlockPos prev;
BlockPos cond = pos;
Expand Down

0 comments on commit 1330c99

Please sign in to comment.