2020-05-06 11:22:03 +02:00
|
|
|
From f4a127bb46e7480a5709c3ba832b87e5fec90e0c Mon Sep 17 00:00:00 2001
|
2020-03-07 01:08:51 +01:00
|
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
|
|
Date: Sat, 7 Mar 2020 00:07:51 +0000
|
|
|
|
Subject: [PATCH] Validate tripwire hook placement before update
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockTripwireHook.java b/src/main/java/net/minecraft/server/BlockTripwireHook.java
|
2020-05-06 11:22:03 +02:00
|
|
|
index 1b9d889af6b..a5e6e94fe0d 100644
|
2020-03-07 01:08:51 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockTripwireHook.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockTripwireHook.java
|
|
|
|
@@ -149,6 +149,7 @@ public class BlockTripwireHook extends Block {
|
|
|
|
|
|
|
|
this.a(world, blockposition, flag4, flag5, flag2, flag3);
|
|
|
|
if (!flag) {
|
|
|
|
+ if (world.getType(blockposition).getBlock() == Blocks.TRIPWIRE_HOOK) // Paper - validate
|
|
|
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata3.set(BlockTripwireHook.FACING, enumdirection), 3);
|
|
|
|
if (flag1) {
|
|
|
|
this.a(world, blockposition, enumdirection);
|
|
|
|
--
|
2020-05-02 00:03:47 +02:00
|
|
|
2.26.2
|
2020-03-07 01:08:51 +01:00
|
|
|
|