mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Merge branch 'master' of https://github.com/TheBusyBiscuit/Slimefun4
This commit is contained in:
commit
7c011d916a
@ -25,7 +25,7 @@ public class CargoHologram {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static ArmorStand getArmorStand(Block b) {
|
private static ArmorStand getArmorStand(Block b) {
|
||||||
Location l = new Location(b.getWorld(), b.getX() + 0.5, b.getY() - 0.7F, b.getZ() + 0.5);
|
Location l = new Location(b.getWorld(), b.getX() + 0.5, b.getY() + 0.7F, b.getZ() + 0.5);
|
||||||
|
|
||||||
for (Entity n : l.getChunk().getEntities()) {
|
for (Entity n : l.getChunk().getEntities()) {
|
||||||
if (n instanceof ArmorStand) {
|
if (n instanceof ArmorStand) {
|
||||||
|
@ -32,7 +32,7 @@ public class EnergyHologram {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static ArmorStand getArmorStand(Block b) {
|
private static ArmorStand getArmorStand(Block b) {
|
||||||
Location l = new Location(b.getWorld(), b.getX() + 0.5, b.getY() - 0.7F, b.getZ() + 0.5);
|
Location l = new Location(b.getWorld(), b.getX() + 0.5, b.getY() + 0.7F, b.getZ() + 0.5);
|
||||||
|
|
||||||
for (Entity n : l.getChunk().getEntities()) {
|
for (Entity n : l.getChunk().getEntities()) {
|
||||||
if (n instanceof ArmorStand) {
|
if (n instanceof ArmorStand) {
|
||||||
|
@ -13,7 +13,7 @@ import me.mrCookieSlime.Slimefun.SlimefunStartup;
|
|||||||
public class ReactorHologram {
|
public class ReactorHologram {
|
||||||
|
|
||||||
public static ArmorStand getArmorStand(Location reactor) {
|
public static ArmorStand getArmorStand(Location reactor) {
|
||||||
Location l = new Location(reactor.getWorld(), reactor.getX() + 0.5, reactor.getY(), reactor.getZ() + 0.5);
|
Location l = new Location(reactor.getWorld(), reactor.getX() + 0.5, reactor.getY() + 0.7, reactor.getZ() + 0.5);
|
||||||
|
|
||||||
for (Entity n : l.getChunk().getEntities()) {
|
for (Entity n : l.getChunk().getEntities()) {
|
||||||
if (n instanceof ArmorStand) {
|
if (n instanceof ArmorStand) {
|
||||||
|
@ -149,7 +149,8 @@ public class AncientAltarListener implements Listener {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ItemMeta im = stack.getItemMeta();
|
ItemMeta im = stack.getItemMeta();
|
||||||
im.setDisplayName(ChatColor.RESET + customName);
|
if (!customName.startsWith(String.valueOf(ChatColor.COLOR_CHAR))) customName = ChatColor.RESET + customName;
|
||||||
|
im.setDisplayName(customName);
|
||||||
stack.setItemMeta(im);
|
stack.setItemMeta(im);
|
||||||
}
|
}
|
||||||
return stack;
|
return stack;
|
||||||
|
Loading…
Reference in New Issue
Block a user