Fix select bug, update TODO

This commit is contained in:
Anuken
2017-12-15 22:16:12 -05:00
parent 8fb001a693
commit 97d1542ff4
5 changed files with 19 additions and 11 deletions

View File

@@ -37,10 +37,12 @@ public class AndroidInput extends InputHandler{
@Override
public boolean touchUp(int screenX, int screenY, int pointer, int button){
if(brokeBlock) return false;
if(brokeBlock){
brokeBlock = false;
return false;
}
brokeBlock = false;
if(placing && pointer == 0 && !player.placeMode.pan){
if(placing && pointer == 0 && !player.placeMode.pan && player.recipe != null){
player.placeMode.released(getBlockX(), getBlockY(), getBlockEndX(), getBlockEndY());
}else if(pointer == 0 && !player.breakMode.pan && player.recipe == null && drawPlace()){
player.breakMode.released(getBlockX(), getBlockY(), getBlockEndX(), getBlockEndY());