From 027722b9cc326a6903a43b3f27446a883321147c Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 30 Nov 2020 13:56:38 -0600 Subject: [PATCH] Added a hologram offset. --- .../java/com/songoda/ultimatestacker/UltimateStacker.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/songoda/ultimatestacker/UltimateStacker.java b/src/main/java/com/songoda/ultimatestacker/UltimateStacker.java index f94a782..3f8d074 100644 --- a/src/main/java/com/songoda/ultimatestacker/UltimateStacker.java +++ b/src/main/java/com/songoda/ultimatestacker/UltimateStacker.java @@ -228,6 +228,10 @@ public class UltimateStacker extends SongodaPlugin { @Override public void onDataLoad() { + if (HologramManager.isEnabled()) + // Set the offset so that the holograms don't end up inside the blocks. + HologramManager.getHolograms().setPositionOffset(.5,.65,.5); + // Load current data. final boolean useSpawnerHolo = Settings.SPAWNER_HOLOGRAMS.getBoolean(); this.dataManager.getSpawners((spawners) -> {