From d3fa82c18ab12878de3774552be2ced2f0121d6e Mon Sep 17 00:00:00 2001 From: P3pp3rF1y Date: Tue, 1 Aug 2017 20:29:19 +0200 Subject: [PATCH] Allow sneaking to bypass villager interaction GUI. (#4193) --- .../minecraft/entity/passive/EntityVillager.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/entity/passive/EntityVillager.java.patch b/patches/minecraft/net/minecraft/entity/passive/EntityVillager.java.patch index 1e07c7b2f..cdc768b4e 100644 --- a/patches/minecraft/net/minecraft/entity/passive/EntityVillager.java.patch +++ b/patches/minecraft/net/minecraft/entity/passive/EntityVillager.java.patch @@ -18,6 +18,15 @@ } } +@@ -255,7 +255,7 @@ + itemstack.func_111282_a(p_184645_1_, this, p_184645_2_); + return true; + } +- else if (!this.func_190669_a(itemstack, this.getClass()) && this.func_70089_S() && !this.func_70940_q() && !this.func_70631_g_()) ++ else if (!this.func_190669_a(itemstack, this.getClass()) && this.func_70089_S() && !this.func_70940_q() && !this.func_70631_g_() && !p_184645_1_.func_70093_af()) + { + if (this.field_70963_i == null) + { @@ -327,6 +327,7 @@ { super.func_70014_b(p_70014_1_);