Add canSaveToDisk to Entity

This commit is contained in:
William Blake Galbreath
2025-01-05 16:43:10 -08:00
committed by granny
parent 27d7eadf95
commit f068d01f6b
7 changed files with 57 additions and 95 deletions

View File

@@ -0,0 +1,10 @@
--- a/net/minecraft/world/level/chunk/storage/EntityStorage.java
+++ b/net/minecraft/world/level/chunk/storage/EntityStorage.java
@@ -106,6 +_,7 @@
}
// Paper end - Entity load/save limit per chunk
CompoundTag compoundTag1 = new CompoundTag();
+ if (!entity.canSaveToDisk()) return; // Purpur - Add canSaveToDisk to Entity
if (entity.save(compoundTag1)) {
listTag.add(compoundTag1);
}