From 2c5c0bf75a4628443ad23400d3f3c9390034e4ac Mon Sep 17 00:00:00 2001 From: sk7725 <58885089+sk7725@users.noreply.github.com> Date: Thu, 15 Jul 2021 23:56:58 +0900 Subject: [PATCH] fix clear pipes jittering in mobile --- src/betamindy/world/blocks/units/ClearPipe.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/betamindy/world/blocks/units/ClearPipe.java b/src/betamindy/world/blocks/units/ClearPipe.java index 632b85ec..60a5ce9f 100644 --- a/src/betamindy/world/blocks/units/ClearPipe.java +++ b/src/betamindy/world/blocks/units/ClearPipe.java @@ -580,7 +580,10 @@ public boolean update(ClearPipeBuild build){ } Tmp.v1.trns(to * 90f, tilesize * (f - 0.5f) * build.block.size).add(build); unit.set(Tmp.v1.x, Tmp.v1.y,to * 90f); - if(p == player) playerPipe.unit().set(Tmp.v1);/*Useful.lockCam(Tmp.v1);*/ + if(playerPipe != null){ + playerPipe.unit().set(Tmp.v1); + if(!headless && mobile && p == player) Core.camera.position.set(Tmp.v1); + } if(f > 1f){ if(to < 0) to = from;