diff options
author | Nassim Jahnke <[email protected]> | 2024-03-19 19:49:12 +0100 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2024-03-19 20:09:02 +0100 |
commit | 55ffcb1111acb558d470790485d8835768873ba8 (patch) | |
tree | 3f4509a2dde52df4cb909bdd39dcf4bfbc666035 /patches/server/1021-Fix-tripwire-disarming-not-working-as-intended.patch | |
parent | 09d6dfb0dfb1ea6dfdf247caa8e5b3c377711bcc (diff) | |
download | Paper-55ffcb1111acb558d470790485d8835768873ba8.tar.gz Paper-55ffcb1111acb558d470790485d8835768873ba8.zip |
Fix tripwire disarming not working as intended
Diffstat (limited to 'patches/server/1021-Fix-tripwire-disarming-not-working-as-intended.patch')
-rw-r--r-- | patches/server/1021-Fix-tripwire-disarming-not-working-as-intended.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/server/1021-Fix-tripwire-disarming-not-working-as-intended.patch b/patches/server/1021-Fix-tripwire-disarming-not-working-as-intended.patch new file mode 100644 index 0000000000..efe071cf68 --- /dev/null +++ b/patches/server/1021-Fix-tripwire-disarming-not-working-as-intended.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: DungeonDev <[email protected]> +Date: Sun, 2 Jul 2023 02:34:54 +0100 +Subject: [PATCH] Fix tripwire disarming not working as intended + +Fixes MC-129055 + +diff --git a/src/main/java/net/minecraft/world/level/block/TripWireHookBlock.java b/src/main/java/net/minecraft/world/level/block/TripWireHookBlock.java +index d9b3877257b31ca1b5acc4a47fbf5b993de69ae0..8bf94fcf5c46ffe6d90f8431338b768ef1a2dd61 100644 +--- a/src/main/java/net/minecraft/world/level/block/TripWireHookBlock.java ++++ b/src/main/java/net/minecraft/world/level/block/TripWireHookBlock.java +@@ -201,9 +201,8 @@ public class TripWireHookBlock extends Block { + BlockState iblockdata4 = aiblockdata[l]; + + if (iblockdata4 != null) { ++ if (world.getBlockState(blockposition2).is(Blocks.TRIPWIRE)) { // Paper - Fix tripwire disarming not working as intended + world.setBlock(blockposition2, (BlockState) iblockdata4.trySetValue(TripWireHookBlock.ATTACHED, flag4), 3); +- if (!world.getBlockState(blockposition2).isAir()) { +- ; + } + } + } |