Made frozen forest less constricted / Tree block fix / Server crash fix

This commit is contained in:
Anuken 2019-04-13 17:32:49 -04:00
parent 8a983c784d
commit 392dcf3092
3 changed files with 9 additions and 2 deletions

Binary file not shown.

View File

@ -15,6 +15,9 @@ public class TreeBlock extends Block{
expanded = true;
}
@Override
public void draw(Tile tile){}
@Override
public void drawLayer(Tile tile){
Draw.rect(region, tile.drawx(), tile.drawy(), Mathf.randomSeed(tile.pos(), 0, 4) * 90);

View File

@ -545,12 +545,16 @@ public class ServerControl implements ApplicationListener{
int slot = Strings.parseInt(arg[0]);
if(!SaveIO.isSaveValid(slot)){
err("No save data found for slot.");
err("No (valid) save data found for slot.");
return;
}
Core.app.post(() -> {
SaveIO.loadFromSlot(slot);
try{
SaveIO.loadFromSlot(slot);
}catch(Throwable t){
err("Failed to load save. Outdated or corrupt file.");
}
info("Save loaded.");
host();
state.set(State.playing);