mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
fix chunkregion entity spawn crash
This commit is contained in:
@@ -81,10 +81,8 @@ public abstract class ChunkRegionMixin {
|
||||
this.config = ((ServerWorld) world).getPack();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public Entity terraWorld$spawnEntity(Vector3 location, EntityType entityType) {
|
||||
net.minecraft.entity.Entity entity = ((net.minecraft.entity.EntityType<?>) entityType).create(
|
||||
((ChunkRegion) (Object) this).toServerWorld());
|
||||
net.minecraft.entity.Entity entity = ((net.minecraft.entity.EntityType<?>) entityType).create(null);
|
||||
entity.setPos(location.getX(), location.getY(), location.getZ());
|
||||
((ChunkRegion) (Object) this).spawnEntity(entity);
|
||||
return (Entity) entity;
|
||||
|
||||
Reference in New Issue
Block a user