Fixed mobile recipe switching
This commit is contained in:
@@ -242,8 +242,10 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
if(tile != null){
|
if(tile != null){
|
||||||
if(!request.remove){
|
if(!request.remove){
|
||||||
rotation = request.rotation;
|
rotation = request.rotation;
|
||||||
|
Recipe before = recipe;
|
||||||
recipe = request.recipe;
|
recipe = request.recipe;
|
||||||
tryPlaceBlock(tile.x, tile.y);
|
tryPlaceBlock(tile.x, tile.y);
|
||||||
|
recipe = before;
|
||||||
}else{
|
}else{
|
||||||
tryBreakBlock(tile.x, tile.y);
|
tryBreakBlock(tile.x, tile.y);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user