13
0
geforkt von Mirrors/Paper
Paper/paper-server/patches/sources/net/minecraft
Spottedleaf 47dd7e1c0a Fix piston physics inconsistency - MC-188840
Pistons invoke physics when they move blocks. The physics can cause
tnt blocks to ignite. However, pistons (when storing the blocks they "moved")
don't actually go back to the world state sometimes to check if something
like that happened. As a result they end up moving the tnt like it was
never ignited. This resulted in the ability to create machines
that can duplicate tnt, called "world eaters".
This patch makes the piston logic retrieve the block state from the world
prevent this from occuring.

This patch also sets the moved pos to air immediately after creating
the moving piston TE. This prevents the block from being updated from
other physics calls by the piston.

Tested against the following tnt duper design:
https://www.youtube.com/watch?v=mS7xxNGhjxs

This patch also affects every type of machine that utilises
this mechanic. For example, dead coral is removed by a physics
update when being moved while it is attached to slimeblocks.

Standard piston machines that don't destroy or modify the
blocks they move by physics updates should be entirely
unaffected.

This patch fixes https://bugs.mojang.com/browse/MC-188840

This patch also fixes rail duping and carpet duping.
2020-06-11 17:29:42 -07:00
..
advancements Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
commands misc debugging dumps 2021-02-18 20:23:28 +00:00
core Optimize MappedRegistry 2018-08-26 20:49:50 -04:00
nbt Reduce memory footprint of CompoundTag 2020-04-06 17:39:25 -07:00
network Add PlayerConnectionCloseEvent 2018-10-07 12:05:28 -07:00
resources MC Dev fixes 2016-03-30 19:36:20 -04:00
server Wait for Async Tasks during shutdown 2020-05-10 22:16:17 -04:00
stats Allow statistics to be disabled/forced 2014-01-07 15:56:26 +00:00
util PreCreatureSpawnEvent 2018-01-14 17:01:31 -05:00
world Fix piston physics inconsistency - MC-188840 2020-06-11 17:29:42 -07:00
ChatFormatting.java.patch Adventure 2021-01-29 17:54:03 +01:00
CrashReport.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
CrashReportCategory.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
Util.java.patch Improve Server Thread Pool and Thread Priorities 2018-10-23 23:14:38 -04:00