GUI Rendering and various fixes
This commit is contained in:
@@ -202,7 +202,7 @@ public class TileCraftingTile extends AENetworkTile implements IAEMultiBlock, IP
|
||||
|
||||
public boolean isFormed()
|
||||
{
|
||||
if( Platform.isClient() )
|
||||
if( isRemote() )
|
||||
{
|
||||
return this.world.getBlockState( this.pos ).get( AbstractCraftingUnitBlock.FORMED );
|
||||
}
|
||||
@@ -357,7 +357,7 @@ public class TileCraftingTile extends AENetworkTile implements IAEMultiBlock, IP
|
||||
@Override
|
||||
public boolean isPowered()
|
||||
{
|
||||
if( Platform.isClient() )
|
||||
if( isRemote() )
|
||||
{
|
||||
return this.world.getBlockState( this.pos ).get( AbstractCraftingUnitBlock.POWERED );
|
||||
}
|
||||
|
||||
@@ -476,16 +476,9 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IUpgrade
|
||||
|
||||
this.ejectHeldItems();
|
||||
|
||||
try
|
||||
{
|
||||
final TargetPoint where = new TargetPoint( this.pos.getX(), this.pos.getY(), this.pos.getZ(), 32, this.world.getDimension().getType() );
|
||||
final IAEItemStack item = AEItemStack.fromItemStack( output );
|
||||
NetworkHandler.instance().sendToAllAround( new PacketAssemblerAnimation( this.pos, (byte) speed, item ), where );
|
||||
}
|
||||
catch( final IOException e )
|
||||
{
|
||||
// ;P
|
||||
}
|
||||
final TargetPoint where = new TargetPoint( this.pos.getX(), this.pos.getY(), this.pos.getZ(), 32, this.world.getDimension().getType() );
|
||||
final IAEItemStack item = AEItemStack.fromItemStack( output );
|
||||
NetworkHandler.instance().sendToAllAround( new PacketAssemblerAnimation( this.pos, (byte) speed, item ), where );
|
||||
|
||||
this.saveChanges();
|
||||
this.updateSleepiness();
|
||||
|
||||
Reference in New Issue
Block a user