From 8ced84d8d343cff5c0dfc78d2530368131c08f38 Mon Sep 17 00:00:00 2001 From: Eloraam Date: Thu, 1 Sep 2011 08:01:47 +0000 Subject: [PATCH] Improved trapdoor hook. --- forge/minecraft.patch | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/forge/minecraft.patch b/forge/minecraft.patch index dd4e9146d..d2e1a6b7e 100644 --- a/forge/minecraft.patch +++ b/forge/minecraft.patch @@ -745,7 +745,7 @@ diff -u -r --strip-trailing-cr ../src_base/minecraft/net/minecraft/src/BlockTorc } diff -u -r --strip-trailing-cr ../src_base/minecraft/net/minecraft/src/BlockTrapDoor.java ../src_work/minecraft/net/minecraft/src/BlockTrapDoor.java --- ../src_base/minecraft/net/minecraft/src/BlockTrapDoor.java 2011-08-30 03:13:17.000000000 -0400 -+++ ../src_work/minecraft/net/minecraft/src/BlockTrapDoor.java 2011-08-30 03:13:19.000000000 -0400 ++++ ../src_work/minecraft/net/minecraft/src/BlockTrapDoor.java 2011-09-01 04:00:04.000000000 -0400 @@ -147,7 +147,7 @@ { j1--; @@ -755,7 +755,15 @@ diff -u -r --strip-trailing-cr ../src_base/minecraft/net/minecraft/src/BlockTrap { world.setBlockWithNotify(i, j, k, 0); dropBlockAsItem(world, i, j, k, i1); -@@ -213,11 +213,15 @@ +@@ -189,6 +189,7 @@ + + public boolean canPlaceBlockOnSide(World world, int i, int j, int k, int l) + { ++ if(disableValidation) return true; + if(l == 0) + { + return false; +@@ -213,11 +214,15 @@ { i--; } @@ -2702,7 +2710,7 @@ diff -u -r --strip-trailing-cr ../src_base/minecraft_server/net/minecraft/src/Bl } diff -u -r --strip-trailing-cr ../src_base/minecraft_server/net/minecraft/src/BlockTrapDoor.java ../src_work/minecraft_server/net/minecraft/src/BlockTrapDoor.java --- ../src_base/minecraft_server/net/minecraft/src/BlockTrapDoor.java 2011-08-30 03:13:19.000000000 -0400 -+++ ../src_work/minecraft_server/net/minecraft/src/BlockTrapDoor.java 2011-08-30 03:13:19.000000000 -0400 ++++ ../src_work/minecraft_server/net/minecraft/src/BlockTrapDoor.java 2011-09-01 04:00:11.000000000 -0400 @@ -130,7 +130,7 @@ { j1--; @@ -2712,7 +2720,15 @@ diff -u -r --strip-trailing-cr ../src_base/minecraft_server/net/minecraft/src/Bl { world.setBlockWithNotify(i, j, k, 0); dropBlockAsItem(world, i, j, k, i1); -@@ -196,11 +196,15 @@ +@@ -172,6 +172,7 @@ + + public boolean canPlaceBlockOnSide(World world, int i, int j, int k, int l) + { ++ if(disableValidation) return true; + if(l == 0) + { + return false; +@@ -196,11 +197,15 @@ { i--; }