mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Some errors fixed
This commit is contained in:
parent
6c8d80777c
commit
6c3ccb259f
@ -30,6 +30,11 @@ public class DrawOperation{
|
||||
class TileOpStruct{
|
||||
short x;
|
||||
short y;
|
||||
/**
|
||||
* 0: floor
|
||||
* 1: block
|
||||
* 2: rotation
|
||||
*/
|
||||
byte type;
|
||||
byte from;
|
||||
byte to;
|
||||
|
@ -235,6 +235,12 @@ public class MapEditor{
|
||||
renderer.resize(width, height);
|
||||
}
|
||||
|
||||
public void changeFloor(int x, int y, Block to){
|
||||
Block from = tiles[x][y].floor();
|
||||
tiles[x][y].setFloor((Floor)to);
|
||||
addTileOp(TileOp.get((short)x, (short)y, (byte)0, from.id, to.id));
|
||||
}
|
||||
|
||||
public void undo(){
|
||||
if(stack.canUndo()){
|
||||
stack.undo(this);
|
||||
|
Loading…
Reference in New Issue
Block a user