Skip to content

Commit

Permalink
Fix 'Already Retired' bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kev626 committed Jun 21, 2023
1 parent 13dd49d commit 2a6b66a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/server/0042-Entity-TTL.patch
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ index ca7e0cd9e03d7d8fece1f81f684cec202389dc32..2925529336c6d080c4fe5283463f7dc3
public static boolean throttleInactiveGoalSelectorTick;
private static void inactiveGoalSelectorThrottle() {
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
index 3e8afc038a608ee98a26ea07899f33b3ac8cae15..ad6aa8dc80679a0ee60bedbff1c5f0350a284316 100644
index 3e8afc038a608ee98a26ea07899f33b3ac8cae15..1aa184cf7a97364d7b9e4d628c0a6c1dc769ba6e 100644
--- a/src/main/java/net/minecraft/world/entity/Entity.java
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
@@ -825,6 +825,12 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource {
Expand All @@ -53,7 +53,7 @@ index 3e8afc038a608ee98a26ea07899f33b3ac8cae15..ad6aa8dc80679a0ee60bedbff1c5f035
public void tick() {
+ // Pufferfish start - entity TTL
+ if (type != EntityType.PLAYER && type.ttl >= 0 && this.tickCount >= type.ttl) {
+ remove(RemovalReason.DISCARDED);
+ discard();
+ return;
+ }
+ // Pufferfish end - entity TTL
Expand Down

1 comment on commit 2a6b66a

@Budderman18
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this bug is still occuring with plugin-created armorstands

Please sign in to comment.