Bugfixes
This commit is contained in:
@@ -17,8 +17,8 @@ public class UnitTypes implements ContentList{
|
||||
spirit = new UnitType("spirit", Spirit.class, Spirit::new){{
|
||||
isFlying = true;
|
||||
drag = 0.01f;
|
||||
speed = 0.2f;
|
||||
maxVelocity = 0.8f;
|
||||
speed = 0.4f;
|
||||
maxVelocity = 1.6f;
|
||||
range = 50f;
|
||||
health = 60;
|
||||
engineSize = 1.8f;
|
||||
@@ -217,8 +217,8 @@ public class UnitTypes implements ContentList{
|
||||
isFlying = true;
|
||||
drag = 0.01f;
|
||||
mass = 2f;
|
||||
speed = 0.2f;
|
||||
maxVelocity = 0.9f;
|
||||
speed = 0.45f;
|
||||
maxVelocity = 1.9f;
|
||||
range = 70f;
|
||||
itemCapacity = 70;
|
||||
health = 220;
|
||||
|
||||
@@ -229,7 +229,7 @@ public class NetClient implements ApplicationListener{
|
||||
int id = input.readInt();
|
||||
byte typeID = input.readByte();
|
||||
|
||||
SyncTrait entity = (SyncTrait)group.getByID(id);
|
||||
SyncTrait entity = group == null ? null : (SyncTrait)group.getByID(id);
|
||||
boolean add = false;
|
||||
|
||||
if(entity == null && id == player.id){
|
||||
|
||||
@@ -429,7 +429,7 @@ public class Player extends Unit implements BuilderTrait, ShooterTrait{
|
||||
public void drawBuildRequests(){
|
||||
BuildRequest last = null;
|
||||
for(BuildRequest request : getPlaceQueue()){
|
||||
if(getCurrentRequest() == request && request.progress > 0.001f) continue;
|
||||
if(getCurrentRequest() == request && request.progress > 0.001f && (dst(request.x * tilesize, request.y * tilesize) <= placeDistance || state.isEditor())) continue;
|
||||
|
||||
if(request.breaking){
|
||||
Block block = world.ltile(request.x, request.y).block();
|
||||
|
||||
@@ -171,7 +171,7 @@ public class JoinDialog extends FloatingDialog{
|
||||
t.add("[lightgray]" + (host.players != 1 ? Core.bundle.format("players", host.players) :
|
||||
Core.bundle.format("players.single", host.players))).left();
|
||||
t.row();
|
||||
t.add("[lightgray]" + Core.bundle.format("save.map", host.mapname) + " / " + Core.bundle.format("save.wave", host.wave)).width(targetWidth() - 10f).left().get().setEllipsis(true);
|
||||
t.add("[lightgray]" + Core.bundle.format("save.map", host.mapname) + "[] / " + Core.bundle.format("save.wave", host.wave)).width(targetWidth() - 10f).left().get().setEllipsis(true);
|
||||
}).expand().left().bottom().padLeft(12f).padBottom(8);
|
||||
|
||||
}, e -> {
|
||||
|
||||
Reference in New Issue
Block a user