Misc minor bugfixes

This commit is contained in:
Anuken
2021-08-09 16:53:49 -04:00
parent ed71777a17
commit 9c1063c7cc
3 changed files with 4 additions and 2 deletions

View File

@@ -160,7 +160,8 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
} }
public final void readBase(Reads read){ public final void readBase(Reads read){
health = read.f(); //cap health by block health in case of nerfs
health = Math.min(read.f(), block.health);
byte rot = read.b(); byte rot = read.b();
team = Team.get(read.b()); team = Team.get(read.b());

View File

@@ -35,7 +35,8 @@ public class LightBlock extends Block{
@Override @Override
public void init(){ public void init(){
lightRadius = radius; //double needed for some reason
lightRadius = radius*2f;
emitLight = true; emitLight = true;
super.init(); super.init();
} }