Fixed #3890
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user