Paper/paper-server/patches/sources/net/minecraft
Bjarne Koll c8efaa46cb Remove wall-time / unused skip tick protection
Spigot still maintains some partial implementation of "tick skipping", a
practice in which the MinecraftServer.currentTick field is updated not
by an increment of one per actual tick, but instead set to
System.currentTimeMillis() / 50. This behaviour means that the tracked
tick may "skip" a tick value in case a previous tick took more than the
expected 50ms.

To compensate for this in important paths, spigot/craftbukkit
implements "wall-time". Instead of incrementing/decrementing ticks on
block entities/entities by one for each call to their tick() method,
they instead increment/decrement important values, like
an ItemEntity's age or pickupDelay, by the difference of
`currentTick - lastTick`, where `lastTick` is the value of
`currentTick` during the last tick() call.

These "fixes" however do not play nicely with minecraft's simulation
distance as entities/block entities implementing the above behaviour
would "catch up" their values when moving from a non-ticking chunk to a
ticking one as their `lastTick` value remains stuck on the last tick in
a ticking chunk and hence lead to a large "catch up" once ticked again.

Paper completely removes the "tick skipping" behaviour (See patch
"Further-improve-server-tick-loop"), making the above precautions
completely unnecessary, which also rids paper of the previous described
incompatibility with non-ticking chunks.
2024-09-16 23:07:29 +02:00
..
advancements Lazily create LootContext for criterions 2023-11-21 12:16:39 -03:00
commands Prioritize Minecraft commands in function parsing and command blocks 2024-07-01 11:58:49 -07:00
core Print data component type on encoding error 2024-05-09 15:11:34 +02:00
data/loot/packs Remove set damage lootable item function from compasses 2024-08-22 22:55:37 +02:00
nbt Improve tag parser handling 2024-02-05 11:54:04 +01:00
network Fix sending disconnect packet in phases where it doesn't exist 2024-05-30 18:46:15 +01:00
resources Validate ResourceLocation in NBT reading 2024-01-04 13:49:14 +01:00
server Fix: synchronise sending chat to client with updating message signature cache 2024-08-26 19:45:07 +02:00
stats Fix spigot's Forced-Stats 2023-08-28 01:32:39 +01:00
util Validate usernames 2022-01-01 05:19:37 -08:00
world Remove wall-time / unused skip tick protection 2024-09-16 23:07:29 +02:00
ChatFormatting.java.patch Adventure 2021-01-29 17:54:03 +01:00
CrashReport.java.patch Disable memory reserve allocating 2024-01-18 23:25:09 +01:00
CrashReportCategory.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
Util.java.patch Remove client-side code using deprecated for removal AccessController 2021-11-26 15:09:58 -08:00