forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -36,6 +36,7 @@ public class Hologram implements ConfigurationSerializable {
|
||||
public static List<Hologram> getHolograms() {
|
||||
return new ArrayList<>(holograms.values());
|
||||
}
|
||||
|
||||
public static Hologram getHologram(String id) {
|
||||
return holograms.get(id);
|
||||
}
|
||||
@@ -56,7 +57,7 @@ public class Hologram implements ConfigurationSerializable {
|
||||
entity.setInvisible(true);
|
||||
entity.setDisplayName(text);
|
||||
|
||||
if(id != null)
|
||||
if (id != null)
|
||||
holograms.put(id, this);
|
||||
}
|
||||
|
||||
@@ -75,7 +76,7 @@ public class Hologram implements ConfigurationSerializable {
|
||||
|
||||
public void delete() {
|
||||
entity.die();
|
||||
if(id != null)
|
||||
if (id != null)
|
||||
holograms.remove(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user