Fixed fog not clearing, movement bug, items stuck in blocks
This commit is contained in:
@@ -279,8 +279,8 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
||||
float px = x, py =y;
|
||||
|
||||
if(snap){
|
||||
x = (int)x;
|
||||
y = (int)y;
|
||||
x = (int)(x + 0.0001f);
|
||||
y = (int)(y + 0.0001f);
|
||||
}
|
||||
|
||||
float ft = Mathf.sin(walktime, 6f, 2f) * (1f-boostHeat);
|
||||
|
||||
@@ -52,11 +52,11 @@ public class Units {
|
||||
boolean[] value = new boolean[1];
|
||||
|
||||
Units.getNearby(rect, unit -> {
|
||||
if(value[0]) return;
|
||||
if(!unit.isFlying()){
|
||||
if (value[0]) return;
|
||||
if (!unit.isFlying()) {
|
||||
unit.getHitbox(hitrect);
|
||||
|
||||
if(hitrect.overlaps(rect)) {
|
||||
if (hitrect.overlaps(rect)) {
|
||||
value[0] = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,7 +166,11 @@ public class ItemDrop extends SolidEntity implements SaveTrait, SyncTrait, DrawT
|
||||
|
||||
Tile tile = world.tileWorld(x, y);
|
||||
|
||||
if(tile.floor().isLiquid){
|
||||
if(tile != null && tile.solid()){
|
||||
CallEntity.onPickup(getID());
|
||||
}
|
||||
|
||||
if(tile != null && tile.floor().isLiquid){
|
||||
sinktime += Timers.delta();
|
||||
|
||||
if(Mathf.chance(0.04 * Timers.delta())){
|
||||
|
||||
Reference in New Issue
Block a user