SPIGOT-6536: Marker position not set on spawn

This commit is contained in:
md_5 2021-06-13 10:25:21 +10:00
parent 20d3e57c4e
commit c9a92ad08e
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -1807,6 +1807,7 @@ public class CraftWorld implements World {
entity = new EntityEvokerFangs(world, x, y, z, (float) Math.toRadians(yaw), 0, null); entity = new EntityEvokerFangs(world, x, y, z, (float) Math.toRadians(yaw), 0, null);
} else if (Marker.class.isAssignableFrom(clazz)) { } else if (Marker.class.isAssignableFrom(clazz)) {
entity = EntityTypes.MARKER.a(world); entity = EntityTypes.MARKER.a(world);
entity.setPosition(x, y, z);
} }
if (entity != null) { if (entity != null) {