From 2b17ce627362602ac3b2be54f575f7e877d101d9 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Thu, 15 Sep 2022 21:58:54 +0700 Subject: [PATCH] Remove duplicated check --- Natives/input_bridge_v3.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/Natives/input_bridge_v3.m b/Natives/input_bridge_v3.m index cd323a02..62ee2974 100644 --- a/Natives/input_bridge_v3.m +++ b/Natives/input_bridge_v3.m @@ -239,8 +239,6 @@ int callback_SurfaceViewController_touchHotbar(CGFloat x, CGFloat y) { int barX = (physicalWidth / 2) - (barWidth / 2); if (x < barX || x >= barX + barWidth) return -1; - if (y < barY || x < barX || x >= barX + barWidth) return -1; - return hotbarKeys[(int) MathUtils_map(x, barX, barX + barWidth, 0, 9)]; }