Fixes a bug caused by BlockLocation not being able to be instantiated from a location object
This commit is contained in:
parent
6d6a7e52b2
commit
6825266a92
@ -1211,7 +1211,8 @@ public class Portal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Portal getByEntrance(Location location) {
|
public static Portal getByEntrance(Location location) {
|
||||||
return lookupEntrances.get(new BlockLocation(location));
|
return lookupEntrances.get(new BlockLocation(location.getWorld(), location.getBlockX(), location.getBlockY(),
|
||||||
|
location.getBlockZ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Portal getByEntrance(Block block) {
|
public static Portal getByEntrance(Block block) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user