diff options
author | Jason Penilla <[email protected]> | 2024-11-06 12:10:01 -0700 |
---|---|---|
committer | Jason Penilla <[email protected]> | 2024-11-06 12:10:01 -0700 |
commit | 019d58e2601e31497d45361da82e5ce061802258 (patch) | |
tree | d1cf5efad4ba6940a352312c8232316c195cadfa /patches/server/0410-Entity-isTicking.patch | |
parent | fcb6c72bc95ff62b9cd78dec457f485dafcc70a4 (diff) | |
download | Paper-fix-10299.tar.gz Paper-fix-10299.zip |
Fix Entity#isTicking and update Paper entity commandfix-10299
fixes #10299
Diffstat (limited to 'patches/server/0410-Entity-isTicking.patch')
-rw-r--r-- | patches/server/0410-Entity-isTicking.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0410-Entity-isTicking.patch b/patches/server/0410-Entity-isTicking.patch index 0a46bb21ad..069e67c326 100644 --- a/patches/server/0410-Entity-isTicking.patch +++ b/patches/server/0410-Entity-isTicking.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Entity#isTicking diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java -index 3f0a44db707176c25e306f55fa63da9314d682a1..4a26795d22c0276980f4d0ad266861389d8471a8 100644 +index 3f0a44db707176c25e306f55fa63da9314d682a1..fdb56135274b0cdd31e92a81c9fc40be3ad23c37 100644 --- a/src/main/java/net/minecraft/world/entity/Entity.java +++ b/src/main/java/net/minecraft/world/entity/Entity.java @@ -4739,5 +4739,9 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess @@ -14,7 +14,7 @@ index 3f0a44db707176c25e306f55fa63da9314d682a1..4a26795d22c0276980f4d0ad26686138 } + + public boolean isTicking() { -+ return ((net.minecraft.server.level.ServerChunkCache) level.getChunkSource()).isPositionTicking(this); ++ return ((net.minecraft.server.level.ServerLevel) this.level).isPositionEntityTicking(this.blockPosition()); + } // Paper end - Expose entity id counter } |