This commit is contained in:
Anuken
2023-06-27 14:45:11 -04:00
parent eb44a7ec84
commit e630bcf41e
2 changed files with 3 additions and 2 deletions

View File

@@ -100,6 +100,7 @@ public class MapRenderer implements Disposable{
private void render(int wx, int wy){
int x = wx / chunkSize, y = wy / chunkSize;
if(x >= chunks.length || y >= chunks[0].length) return;
IndexedRenderer mesh = chunks[x][y];
Tile tile = editor.tiles().getn(wx, wy);

View File

@@ -184,12 +184,12 @@ public class MapView extends Element implements GestureListener{
offsety -= ay * 15 * Time.delta / zoom;
}
if(Core.input.keyTap(KeyCode.shiftLeft)){
if(Core.input.keyTap(KeyCode.shiftLeft) || Core.input.keyTap(KeyCode.altLeft)){
lastTool = tool;
tool = EditorTool.pick;
}
if(Core.input.keyRelease(KeyCode.shiftLeft) && lastTool != null){
if((Core.input.keyRelease(KeyCode.shiftLeft) || Core.input.keyRelease(KeyCode.altLeft)) && lastTool != null){
tool = lastTool;
lastTool = null;
}