Fixed server

This commit is contained in:
Anuken
2020-02-09 15:40:03 -05:00
parent ae7a8e1f65
commit d89189debd
2 changed files with 28 additions and 31 deletions

View File

@@ -18,10 +18,11 @@ public class TestPlanetGenerator implements PlanetGenerator{
Array<Block> blocks = Array.with(Blocks.sporeMoss, Blocks.moss, Blocks.ice, Blocks.snow, Blocks.sand, Blocks.darksand, Blocks.darksandWater, Blocks.darksandTaintedWater, Blocks.iceSnow);
public TestPlanetGenerator(){
//TODO remove planet pixmap
try{
pix = new Pixmap("planets/colors.png");
water = waterLevel / (float)(pix.getHeight());
}catch(Exception ignored){
}catch(Throwable ignored){
//ignored during headless loading for now
}
}