@@ -4,8 +4,8 @@
|
||||
return Optional.empty();
|
||||
} else {
|
||||
((EntityInsentient) object).setPositionRotation(vec3d.getX(), vec3d.getY(), vec3d.getZ(), 0.0F, 0.0F);
|
||||
- world.addEntity((Entity) object);
|
||||
+ world.addEntity((Entity) object, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
|
||||
- worldserver.addAllEntities((Entity) object);
|
||||
+ worldserver.addAllEntities((Entity) object, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
|
||||
if (itemstack.hasName()) {
|
||||
((EntityInsentient) object).setCustomName(itemstack.getName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user