mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
commit
833b3d6837
@ -144,6 +144,7 @@ public abstract class AReactor extends SlimefunItem {
|
||||
}
|
||||
progress.remove(b.getLocation());
|
||||
processing.remove(b.getLocation());
|
||||
ReactorHologram.remove(b.getLocation());
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user