This commit is contained in:
Anuken
2020-12-09 14:02:38 -05:00
parent 9537051590
commit 999cc9c651
4 changed files with 16 additions and 9 deletions

View File

@@ -413,7 +413,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
public void tap(InputEvent event, float x, float y, int count, KeyCode button){
if(showing()) return;
if(selected == hovered && count == 2){
if(hovered != null && selected == hovered && count == 2){
playSelected();
}

View File

@@ -17,7 +17,11 @@ public class LiquidConverter extends GenericCrafter{
@Override
public void init(){
ConsumeLiquidBase cl = consumes.get(ConsumeType.liquid);
if(!consumes.has(ConsumeType.liquid) || !(consumes.get(ConsumeType.liquid) instanceof ConsumeLiquid)){
throw new RuntimeException("LiquidsConverters must have a ConsumeLiquid. Note that filters are not supported.");
}
ConsumeLiquid cl = consumes.get(ConsumeType.liquid);
cl.update(false);
outputLiquid.amount = cl.amount;
super.init();