Fixes some things regarding vehicle teleportation

Adds extra space between the portal and the vehicle if the destination portal is always on
Fixes a bug causing vehicles not being detected soon enough
Fixes boats facing into the portal rather than out from the portal
Fixes boats spawning inside water rather than on top of it if water is in front of a portal
This commit is contained in:
2021-02-27 22:34:10 +01:00
parent ba64572254
commit da32cf11d1
6 changed files with 45 additions and 17 deletions

View File

@ -7,7 +7,11 @@ import org.bukkit.Location;
/**
* This class helps with direction-dependent (modX, modZ) calculations
*/
public class DirectionHelper {
public final class DirectionHelper {
private DirectionHelper() {
}
/**
* Gets the block at a relative block vector location