Skip to content

Commit

Permalink
EntityType paths are now "names"
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHeijden authored Jun 14, 2023
1 parent 27c20fd commit 317255c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private void readChunkEntities(CompoundTag nbt, Consumer<ChunkEntity> entityCons
String entityTypeName = net.minecraft.world.entity.EntityType.getKey(typeOptional.get()).getPath();
ListTag posList = nbt.getList("Pos", Tag.TAG_DOUBLE);
entityConsumer.accept(new ChunkEntity(
EntityType.valueOf(entityTypeName),
EntityType.fromName(entityTypeName),
Mth.floor(Mth.clamp(posList.getDouble(0), -3E7D, 3E7D)),
Mth.floor(Mth.clamp(posList.getDouble(1), -2E7D, 2E7D)),
Mth.floor(Mth.clamp(posList.getDouble(2), -3E7D, 3E7D))
Expand Down

0 comments on commit 317255c

Please sign in to comment.