From 0c82db4116ebf9037a9ddffcb43b1979c8b6b0fe Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Fri, 15 Jul 2022 01:28:51 -0400 Subject: [PATCH] Diable Broken Touchscreen-Specific Block Outline Behavior --- mods/src/touch/touch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/src/touch/touch.cpp b/mods/src/touch/touch.cpp index 0ebf24b..5b86f5b 100644 --- a/mods/src/touch/touch.cpp +++ b/mods/src/touch/touch.cpp @@ -87,4 +87,9 @@ void init_touch() { int block_outlines = feature_has("Show Block Outlines", server_disabled); unsigned char outline_patch[4] = {(unsigned char) (block_outlines ? !touch_gui : touch_gui), 0x00, 0x50, 0xe3}; // "cmp r0, #0x1" or "cmp r0, #0x0" patch((void *) 0x4a210, outline_patch); + if (block_outlines) { + // Diable Broken Touchscreen-Specific Block Outline Behavior + unsigned char block_highlight_patch[4] = {0x03, 0x00, 0x53, 0xe1}; // "cmp r3, r3" + patch((void *) 0x494b4, block_highlight_patch); + } }