mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-12-03 15:33:32 +01:00
hotfix: Copy over old normalization logic for Hologram hooks for ceze
This commit is contained in:
parent
5379537f7c
commit
3591bfe1a4
@ -1,7 +1,6 @@
|
||||
package com.craftaro.core.hooks.hologram;
|
||||
|
||||
import com.craftaro.core.hooks.Hook;
|
||||
import com.craftaro.core.utils.LocationUtils;
|
||||
import org.bukkit.Location;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@ -64,8 +63,11 @@ public abstract class HologramHook implements Hook {
|
||||
}
|
||||
|
||||
protected @NotNull Location getNormalizedLocation(Location location) {
|
||||
return LocationUtils
|
||||
.getCenter(location)
|
||||
.add(0, getYOffset(), 0);
|
||||
return new Location(
|
||||
location.getWorld(),
|
||||
location.getX() + (location.getX() - (int) location.getX()) + 0.5,
|
||||
location.getY() + (location.getY() - (int) location.getY()) + 0.5 + getYOffset(),
|
||||
location.getZ() + (location.getZ() - (int) location.getZ()) + 0.5
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user