fix #49. you can now actually clear storage and conversion monitors
This commit is contained in:
@@ -206,10 +206,17 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
|
|||||||
fluidInTank = fluidHandlerItem.drain( Integer.MAX_VALUE, false );
|
fluidInTank = fluidHandlerItem.drain( Integer.MAX_VALUE, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fluidInTank == null)
|
if( fluidInTank == null )
|
||||||
{
|
{
|
||||||
this.configuredFluid = null;
|
this.configuredFluid = null;
|
||||||
this.configuredItem = AEItemStack.fromItemStack( eq );
|
if( !eq.isEmpty() )
|
||||||
|
{
|
||||||
|
this.configuredItem = AEItemStack.fromItemStack( eq ).setStackSize( 0 );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.configuredItem = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if( fluidInTank.amount > 0 )
|
else if( fluidInTank.amount > 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -170,8 +170,7 @@ public class PartConversionMonitor extends AbstractPartMonitor
|
|||||||
this.insertItem( player, hand, false );
|
this.insertItem( player, hand, false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return super.onPartActivate( player, hand, pos );
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user