1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Fixed ReactorHologram

This commit is contained in:
BuildTools 2016-11-20 22:27:52 +01:00
parent 1b674aed05
commit 87bddc1fd8
2 changed files with 3 additions and 2 deletions

View File

@ -144,6 +144,7 @@ public abstract class AReactor extends SlimefunItem {
}
progress.remove(b.getLocation());
processing.remove(b.getLocation());
ReactorHologram.remove(b.getLocation());
return true;
}
});

View File

@ -15,12 +15,12 @@ public class ReactorHologram {
for (Entity n : l.getChunk().getEntities()) {
if (n instanceof ArmorStand) {
if (n.getCustomName() == null && l.distanceSquared(n.getLocation()) < 0.4D) return (ArmorStand) n;
if (l.distanceSquared(n.getLocation()) < 0.4D) return (ArmorStand) n;
}
}
ArmorStand hologram = ArmorStandFactory.createHidden(l);
hologram.setCustomNameVisible(false);
hologram.setCustomNameVisible(true);
hologram.setCustomName(null);
return hologram;
}