Current for BC 6.0.12 release
This commit is contained in:
@@ -25,12 +25,12 @@ public class AECableSchematicTile extends AEGenericSchematicTile implements IPar
|
|||||||
public void rotateLeft(IBuilderContext context)
|
public void rotateLeft(IBuilderContext context)
|
||||||
{
|
{
|
||||||
CableBusContainer cbc = new CableBusContainer( this );
|
CableBusContainer cbc = new CableBusContainer( this );
|
||||||
cbc.readFromNBT( cpt );
|
cbc.readFromNBT( tileNBT );
|
||||||
|
|
||||||
cbc.rotateLeft();
|
cbc.rotateLeft();
|
||||||
|
|
||||||
cpt = new NBTTagCompound();
|
tileNBT = new NBTTagCompound();
|
||||||
cbc.writeToNBT( cpt );
|
cbc.writeToNBT( tileNBT );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class AEGenericSchematicTile extends SchematicTile
|
|||||||
{
|
{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeRequirementsToSchematic(IBuilderContext context, int x, int y, int z)
|
public void writeRequirementsToBlueprint(IBuilderContext context, int x, int y, int z)
|
||||||
{
|
{
|
||||||
TileEntity tile = context.world().getTileEntity( x, y, z );
|
TileEntity tile = context.world().getTileEntity( x, y, z );
|
||||||
ArrayList<ItemStack> list = new ArrayList();
|
ArrayList<ItemStack> list = new ArrayList();
|
||||||
@@ -30,10 +30,10 @@ public class AEGenericSchematicTile extends SchematicTile
|
|||||||
@Override
|
@Override
|
||||||
public void rotateLeft(IBuilderContext context)
|
public void rotateLeft(IBuilderContext context)
|
||||||
{
|
{
|
||||||
if ( cpt.hasKey( "orientation_forward" ) && cpt.hasKey( "orientation_up" ) )
|
if ( tileNBT.hasKey( "orientation_forward" ) && tileNBT.hasKey( "orientation_up" ) )
|
||||||
{
|
{
|
||||||
String forward = cpt.getString( "orientation_forward" );
|
String forward = tileNBT.getString( "orientation_forward" );
|
||||||
String up = cpt.getString( "orientation_up" );
|
String up = tileNBT.getString( "orientation_up" );
|
||||||
|
|
||||||
if ( forward != null && up != null )
|
if ( forward != null && up != null )
|
||||||
{
|
{
|
||||||
@@ -45,8 +45,8 @@ public class AEGenericSchematicTile extends SchematicTile
|
|||||||
fdForward = Platform.rotateAround( fdForward, ForgeDirection.DOWN );
|
fdForward = Platform.rotateAround( fdForward, ForgeDirection.DOWN );
|
||||||
fdUp = Platform.rotateAround( fdUp, ForgeDirection.DOWN );
|
fdUp = Platform.rotateAround( fdUp, ForgeDirection.DOWN );
|
||||||
|
|
||||||
cpt.setString( "orientation_forward", fdForward.name() );
|
tileNBT.setString( "orientation_forward", fdForward.name() );
|
||||||
cpt.setString( "orientation_up", fdUp.name() );
|
tileNBT.setString( "orientation_up", fdUp.name() );
|
||||||
}
|
}
|
||||||
catch (Throwable t)
|
catch (Throwable t)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user