Fixes teleportation of players using end portals to and from the end

This commit is contained in:
2021-10-12 01:11:52 +02:00
parent 51afa1527f
commit 53cd55938b
5 changed files with 102 additions and 26 deletions

View File

@ -646,7 +646,7 @@ public class Portal {
* @param traveller <p>The location of the entity travelling</p>
* @return <p>The location the entity should be teleported to.</p>
*/
private Location getExit(Entity entity, Location traveller) {
public Location getExit(Entity entity, Location traveller) {
Location exitLocation = null;
// Check if the gate has an exit block
RelativeBlockVector relativeExit = gate.getLayout().getExit();