From 2b320754296af13e6e7e8ef09abbea23a6498f01 Mon Sep 17 00:00:00 2001 From: filoghost Date: Mon, 1 Sep 2014 11:34:15 +0200 Subject: [PATCH] Fix vertical spacing & re-add the permission "holograms.admin" --- .../holograms/commands/main/HologramSubCommand.java | 2 +- .../com/gmail/filoghost/holograms/object/CraftHologram.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HolographicDisplays/src/com/gmail/filoghost/holograms/commands/main/HologramSubCommand.java b/HolographicDisplays/src/com/gmail/filoghost/holograms/commands/main/HologramSubCommand.java index a00f12b8..def6ba16 100644 --- a/HolographicDisplays/src/com/gmail/filoghost/holograms/commands/main/HologramSubCommand.java +++ b/HolographicDisplays/src/com/gmail/filoghost/holograms/commands/main/HologramSubCommand.java @@ -35,7 +35,7 @@ public abstract class HologramSubCommand { public final boolean hasPermission(CommandSender sender) { if (permission == null) return true; - return sender.hasPermission(permission); + return sender.hasPermission("holograms.admin") || sender.hasPermission(permission); } public abstract String getPossibleArguments(); diff --git a/HolographicDisplays/src/com/gmail/filoghost/holograms/object/CraftHologram.java b/HolographicDisplays/src/com/gmail/filoghost/holograms/object/CraftHologram.java index 7cf4bd71..da51b05e 100644 --- a/HolographicDisplays/src/com/gmail/filoghost/holograms/object/CraftHologram.java +++ b/HolographicDisplays/src/com/gmail/filoghost/holograms/object/CraftHologram.java @@ -135,7 +135,7 @@ public class CraftHologram extends HologramBase implements Hologram { for (String text : textLines) { if (text.length() >= 5 && text.substring(0, 5).toLowerCase().equals("icon:")) { - + // It's a floating icon! ItemStack icon; try { @@ -147,7 +147,7 @@ public class CraftHologram extends HologramBase implements Hologram { // If the current Y has been changed, the item is NOT on top of the hologram. if (currentY != this.y) { // Extra space for the floating item... - currentY -= 0.27; + currentY -= 0.52; } FloatingItemDoubleEntity lineEntity = new FloatingItemDoubleEntity(icon); @@ -232,7 +232,7 @@ public class CraftHologram extends HologramBase implements Hologram { if (currentY != loc.getY()) { // Extra space for the floating item... - currentY -= 0.27; + currentY -= 0.52; } lineEntity.teleport(loc.getX(), currentY, loc.getZ());