mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-05 23:10:30 +00:00
Fix printing not updating the output display state
This commit is contained in:
parent
2965fb666f
commit
1fd0b40776
@ -186,6 +186,7 @@ public class TilePrinter extends TilePeripheralBase implements DefaultSidedInven
|
|||||||
{
|
{
|
||||||
ItemStack result = m_inventory.get( i );
|
ItemStack result = m_inventory.get( i );
|
||||||
m_inventory.set( i, ItemStack.EMPTY );
|
m_inventory.set( i, ItemStack.EMPTY );
|
||||||
|
markDirty();
|
||||||
updateAnim();
|
updateAnim();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -197,10 +198,7 @@ public class TilePrinter extends TilePeripheralBase implements DefaultSidedInven
|
|||||||
{
|
{
|
||||||
synchronized( m_inventory )
|
synchronized( m_inventory )
|
||||||
{
|
{
|
||||||
if( m_inventory.get( i ).isEmpty() )
|
if( m_inventory.get( i ).isEmpty() ) return ItemStack.EMPTY;
|
||||||
{
|
|
||||||
return ItemStack.EMPTY;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( m_inventory.get( i ).getCount() <= j )
|
if( m_inventory.get( i ).getCount() <= j )
|
||||||
{
|
{
|
||||||
@ -238,10 +236,7 @@ public class TilePrinter extends TilePeripheralBase implements DefaultSidedInven
|
|||||||
{
|
{
|
||||||
synchronized( m_inventory )
|
synchronized( m_inventory )
|
||||||
{
|
{
|
||||||
for( int i = 0; i < m_inventory.size(); i++ )
|
for( int i = 0; i < m_inventory.size(); i++ ) m_inventory.set( i, ItemStack.EMPTY );
|
||||||
{
|
|
||||||
m_inventory.set( i, ItemStack.EMPTY );
|
|
||||||
}
|
|
||||||
markDirty();
|
markDirty();
|
||||||
updateAnim();
|
updateAnim();
|
||||||
}
|
}
|
||||||
@ -432,10 +427,7 @@ public class TilePrinter extends TilePeripheralBase implements DefaultSidedInven
|
|||||||
|
|
||||||
// Decrement ink
|
// Decrement ink
|
||||||
inkStack.shrink( 1 );
|
inkStack.shrink( 1 );
|
||||||
if( inkStack.isEmpty() )
|
if( inkStack.isEmpty() ) m_inventory.set( 0, ItemStack.EMPTY );
|
||||||
{
|
|
||||||
m_inventory.set( 0, ItemStack.EMPTY );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Decrement paper
|
// Decrement paper
|
||||||
paperStack.shrink( 1 );
|
paperStack.shrink( 1 );
|
||||||
@ -474,7 +466,7 @@ public class TilePrinter extends TilePeripheralBase implements DefaultSidedInven
|
|||||||
{
|
{
|
||||||
if( m_inventory.get( slot ).isEmpty() )
|
if( m_inventory.get( slot ).isEmpty() )
|
||||||
{
|
{
|
||||||
m_inventory.set( slot, stack );
|
setInventorySlotContents( slot, stack );
|
||||||
m_printing = false;
|
m_printing = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user