Merge pull request #1373 from yueh/fix-1360
Added missing check to detect missing cell workbenches
This commit is contained in:
commit
8917a331eb
1 changed files with 5 additions and 2 deletions
|
@ -122,10 +122,8 @@ public class ContainerCellWorkbench extends ContainerUpgradeable
|
||||||
/*
|
/*
|
||||||
* if ( supportCapacity() ) { for (int w = 0; w < 2; w++) for (int z = 0; z < 9; z++) addSlotToContainer( new
|
* if ( supportCapacity() ) { for (int w = 0; w < 2; w++) for (int z = 0; z < 9; z++) addSlotToContainer( new
|
||||||
* OptionalSlotFakeTypeOnly( inv, this, offset++, x, y, z, w, 1 ) );
|
* OptionalSlotFakeTypeOnly( inv, this, offset++, x, y, z, w, 1 ) );
|
||||||
*
|
|
||||||
* for (int w = 0; w < 2; w++) for (int z = 0; z < 9; z++) addSlotToContainer( new OptionalSlotFakeTypeOnly(
|
* for (int w = 0; w < 2; w++) for (int z = 0; z < 9; z++) addSlotToContainer( new OptionalSlotFakeTypeOnly(
|
||||||
* inv, this, offset++, x, y, z, w + 2, 2 ) );
|
* inv, this, offset++, x, y, z, w + 2, 2 ) );
|
||||||
*
|
|
||||||
* for (int w = 0; w < 2; w++) for (int z = 0; z < 9; z++) addSlotToContainer( new OptionalSlotFakeTypeOnly(
|
* for (int w = 0; w < 2; w++) for (int z = 0; z < 9; z++) addSlotToContainer( new OptionalSlotFakeTypeOnly(
|
||||||
* inv, this, offset++, x, y, z, w + 4, 3 ) ); }
|
* inv, this, offset++, x, y, z, w + 4, 3 ) ); }
|
||||||
*/
|
*/
|
||||||
|
@ -149,6 +147,11 @@ public class ContainerCellWorkbench extends ContainerUpgradeable
|
||||||
ItemStack is = this.workBench.getInventoryByName( "cell" ).getStackInSlot( 0 );
|
ItemStack is = this.workBench.getInventoryByName( "cell" ).getStackInSlot( 0 );
|
||||||
if( Platform.isServer() )
|
if( Platform.isServer() )
|
||||||
{
|
{
|
||||||
|
if( workBench.getWorldObj().getTileEntity( workBench.xCoord, workBench.yCoord, workBench.zCoord ) != workBench )
|
||||||
|
{
|
||||||
|
this.isContainerValid = false;
|
||||||
|
}
|
||||||
|
|
||||||
for( Object crafter : this.crafters )
|
for( Object crafter : this.crafters )
|
||||||
{
|
{
|
||||||
ICrafting icrafting = (ICrafting) crafter;
|
ICrafting icrafting = (ICrafting) crafter;
|
||||||
|
|
Loading…
Reference in a new issue