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){
health = read.f();
//cap health by block health in case of nerfs
health = Math.min(read.f(), block.health);
byte rot = read.b();
team = Team.get(read.b());