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

Merge pull request #30 from John000708/master

Fixed ReactorHologram
This commit is contained in:
John000708 2016-11-20 22:28:52 +01:00 committed by GitHub
commit 833b3d6837
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;
}