-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not store tick count for living entities
- Loading branch information
Showing
23 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...-server/minecraft-patches/features/0022-Do-not-store-tick-count-for-living-entities.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: MrHua269 <[email protected]> | ||
Date: Fri, 7 Feb 2025 22:25:08 +0800 | ||
Subject: [PATCH] Do not store tick count for living entities | ||
|
||
|
||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java | ||
index 61814607a6c8e4ce8d07645f005ea8d53f624c95..d6d429817dac95badcb1d67e370cd37cef43fd48 100644 | ||
--- a/net/minecraft/world/entity/Entity.java | ||
+++ b/net/minecraft/world/entity/Entity.java | ||
@@ -2488,7 +2488,7 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess | ||
if (this.maxAirTicks != this.getDefaultMaxAirSupply()) { | ||
compound.putInt("Bukkit.MaxAirSupply", this.getMaxAirSupply()); | ||
} | ||
- compound.putInt("Spigot.ticksLived", this.tickCount); | ||
+ //compound.putInt("Spigot.ticksLived", this.tickCount); // Luminol - Do not store tick count for living entities | ||
// CraftBukkit end | ||
Component customName = this.getCustomName(); | ||
if (customName != null) { | ||
@@ -2661,10 +2661,10 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess | ||
} | ||
// CraftBukkit start | ||
// Spigot start | ||
- if (this instanceof net.minecraft.world.entity.LivingEntity) { | ||
+ /*if (this instanceof net.minecraft.world.entity.LivingEntity) { // Luminol - Do not store tick count for living entities | ||
this.tickCount = compound.getInt("Spigot.ticksLived"); | ||
- } | ||
- // Spigot end | ||
+ }*/ | ||
+ // Spigot end // Luminol - Do not store tick count for living entities | ||
this.persist = !compound.contains("Bukkit.persist") || compound.getBoolean("Bukkit.persist"); | ||
this.visibleByDefault = !compound.contains("Bukkit.visibleByDefault") || compound.getBoolean("Bukkit.visibleByDefault"); | ||
// SPIGOT-6907: re-implement LivingEntity#setMaximumAir() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters