mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-08-04 00:49:32 +07:00
Fixed #513
This commit is contained in:
@ -83,6 +83,8 @@ public class Control implements ApplicationListener{
|
|||||||
});
|
});
|
||||||
|
|
||||||
Events.on(PlayEvent.class, event -> {
|
Events.on(PlayEvent.class, event -> {
|
||||||
|
player.setTeam(defaultTeam);
|
||||||
|
player.setDead(true);
|
||||||
player.add();
|
player.add();
|
||||||
|
|
||||||
state.set(State.playing);
|
state.set(State.playing);
|
||||||
|
@ -37,6 +37,7 @@ public class LiquidConverter extends GenericCrafter{
|
|||||||
if(hasPower){
|
if(hasPower){
|
||||||
use *= entity.power.satisfaction; // Produce less liquid if power is not maxed
|
use *= entity.power.satisfaction; // Produce less liquid if power is not maxed
|
||||||
}
|
}
|
||||||
|
useContent(tile, outputLiquid.liquid);
|
||||||
entity.progress += use / cl.amount / craftTime;
|
entity.progress += use / cl.amount / craftTime;
|
||||||
entity.liquids.add(outputLiquid.liquid, use);
|
entity.liquids.add(outputLiquid.liquid, use);
|
||||||
if(entity.progress >= 1f){
|
if(entity.progress >= 1f){
|
||||||
|
Reference in New Issue
Block a user