mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-12-12 11:46:45 +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;
|
package com.craftaro.core.hooks.hologram;
|
||||||
|
|
||||||
import com.craftaro.core.hooks.Hook;
|
import com.craftaro.core.hooks.Hook;
|
||||||
import com.craftaro.core.utils.LocationUtils;
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
@ -64,8 +63,11 @@ public abstract class HologramHook implements Hook {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected @NotNull Location getNormalizedLocation(Location location) {
|
protected @NotNull Location getNormalizedLocation(Location location) {
|
||||||
return LocationUtils
|
return new Location(
|
||||||
.getCenter(location)
|
location.getWorld(),
|
||||||
.add(0, getYOffset(), 0);
|
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