mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-06-25 05:54:55 +02:00
Make shulker bullet the default marker type
This commit is contained in:
parent
52f8044cd5
commit
d334d86f3d
|
@ -25,7 +25,7 @@ public class EntityMarkers<T> {
|
|||
private EntityType type;
|
||||
|
||||
public EntityMarkers() {
|
||||
this(EntityType.ENDER_SIGNAL);
|
||||
this(DEFAULT_ENTITY_TYPE);
|
||||
}
|
||||
|
||||
public EntityMarkers(EntityType type) {
|
||||
|
@ -76,4 +76,13 @@ public class EntityMarkers<T> {
|
|||
npc.spawn(at.clone().add(0.5, 0, 0.5), SpawnReason.CREATE);
|
||||
return npc.getEntity();
|
||||
}
|
||||
|
||||
private static EntityType DEFAULT_ENTITY_TYPE = EntityType.ENDER_SIGNAL;
|
||||
|
||||
static {
|
||||
try {
|
||||
DEFAULT_ENTITY_TYPE = EntityType.valueOf("SHULKER_BULLET");
|
||||
} catch (IllegalArgumentException e) {
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user