Various bugfixes
This commit is contained in:
@@ -100,7 +100,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean collides(SolidTrait other){
|
public boolean collides(SolidTrait other){
|
||||||
if(isDead()) return true;
|
if(isDead()) return false;
|
||||||
|
|
||||||
if(other instanceof DamageTrait){
|
if(other instanceof DamageTrait){
|
||||||
return other instanceof TeamTrait && state.teams.areEnemies((((TeamTrait) other).getTeam()), team);
|
return other instanceof TeamTrait && state.teams.areEnemies((((TeamTrait) other).getTeam()), team);
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ public class HudFragment extends Fragment{
|
|||||||
if(Net.hasClient()){
|
if(Net.hasClient()){
|
||||||
t.label(() -> ping.get(Net.getPing())).visible(() -> Net.client() && !gwt).colspan(2);
|
t.label(() -> ping.get(Net.getPing())).visible(() -> Net.client() && !gwt).colspan(2);
|
||||||
}
|
}
|
||||||
}).size(-1).visible(() -> Settings.getBool("fps")).update(t -> t.setTranslation(0, state.mode.disableWaves ? waves.getHeight() : 0)).get();
|
}).size(-1).visible(() -> Settings.getBool("fps")).update(t -> t.setTranslation(0, (!waves.isVisible() ? waves.getHeight() : Math.min(waves.getTranslation().y, waves.getHeight())) )).get();
|
||||||
|
|
||||||
//make wave box appear below rest of menu
|
//make wave box appear below rest of menu
|
||||||
cont.swapActor(wavetable, menu.getParent());
|
cont.swapActor(wavetable, menu.getParent());
|
||||||
@@ -347,7 +347,6 @@ public class HudFragment extends Fragment{
|
|||||||
wavetable = table;
|
wavetable = table;
|
||||||
|
|
||||||
IntFormat wavef = new IntFormat("text.wave");
|
IntFormat wavef = new IntFormat("text.wave");
|
||||||
IntFormat waitf = new IntFormat("text.wave.waiting");
|
|
||||||
IntFormat enemyf = new IntFormat("text.wave.enemy");
|
IntFormat enemyf = new IntFormat("text.wave.enemy");
|
||||||
IntFormat enemiesf = new IntFormat("text.wave.enemies");
|
IntFormat enemiesf = new IntFormat("text.wave.enemies");
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import io.anuke.mindustry.world.meta.BlockStat;
|
|||||||
|
|
||||||
public class PowerCrafter extends Block{
|
public class PowerCrafter extends Block{
|
||||||
protected final int timerDump = timers++;
|
protected final int timerDump = timers++;
|
||||||
|
protected final int timerContentCheck = timers++;
|
||||||
|
|
||||||
/**Optional.*/
|
/**Optional.*/
|
||||||
protected Item outputItem;
|
protected Item outputItem;
|
||||||
@@ -70,8 +71,17 @@ public class PowerCrafter extends Block{
|
|||||||
|
|
||||||
if(entity.progress >= 1f){
|
if(entity.progress >= 1f){
|
||||||
entity.items.remove(consumes.item(), consumes.itemAmount());
|
entity.items.remove(consumes.item(), consumes.itemAmount());
|
||||||
if(outputItem != null) offloadNear(tile, outputItem);
|
if(outputItem != null){
|
||||||
if(outputLiquid != null) handleLiquid(tile, tile, outputLiquid, outputLiquidAmount);
|
offloadNear(tile, outputItem);
|
||||||
|
useContent(tile, outputItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(outputLiquid != null){
|
||||||
|
handleLiquid(tile, tile, outputLiquid, outputLiquidAmount);
|
||||||
|
if(tile.entity.liquids.currentAmount() > 0f && tile.entity.timer.get(timerContentCheck, 10)){
|
||||||
|
useContent(tile, outputLiquid);
|
||||||
|
}
|
||||||
|
}
|
||||||
entity.progress = 0f;
|
entity.progress = 0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public class Pump extends LiquidBlock{
|
|||||||
protected final Array<Tile> drawTiles = new Array<>();
|
protected final Array<Tile> drawTiles = new Array<>();
|
||||||
protected final Array<Tile> updateTiles = new Array<>();
|
protected final Array<Tile> updateTiles = new Array<>();
|
||||||
|
|
||||||
protected int timerContentCheck = timers++;
|
protected final int timerContentCheck = timers++;
|
||||||
|
|
||||||
/**Pump amount per tile this block is on.*/
|
/**Pump amount per tile this block is on.*/
|
||||||
protected float pumpAmount = 1f;
|
protected float pumpAmount = 1f;
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public class ServerControl extends Module{
|
|||||||
"shufflemode", "normal",
|
"shufflemode", "normal",
|
||||||
"bans", "",
|
"bans", "",
|
||||||
"admins", "",
|
"admins", "",
|
||||||
"sector_x", 0,
|
"sector_x", 2,
|
||||||
"sector_y", 1,
|
"sector_y", 1,
|
||||||
"shuffle", true,
|
"shuffle", true,
|
||||||
"crashreport", false,
|
"crashreport", false,
|
||||||
|
|||||||
Reference in New Issue
Block a user