Fixed a few more rendering/visual update glitches.
This commit is contained in:
@@ -334,7 +334,7 @@ public class BusRenderHelper implements IPartRenderHelper
|
|||||||
if ( !renderThis() )
|
if ( !renderThis() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
renderer.renderStandardBlock( renderer.blockAccess.getBlock( x, y, z ), x, y, z );
|
renderer.renderStandardBlock( blk, x, y, z );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -419,8 +419,7 @@ public class Registration
|
|||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (Throwable e)
|
||||||
{
|
{
|
||||||
AELog.severe( "Error with Feature: " + c.getName() );
|
throw new RuntimeException( "Error with Feature: " + c.getName(), e );
|
||||||
throw new RuntimeException( e );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -575,6 +575,8 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
|
|||||||
{
|
{
|
||||||
byte sides = data.readByte();
|
byte sides = data.readByte();
|
||||||
|
|
||||||
|
boolean updateBlock = false;
|
||||||
|
|
||||||
for (int x = 0; x < 7; x++)
|
for (int x = 0; x < 7; x++)
|
||||||
{
|
{
|
||||||
ForgeDirection side = ForgeDirection.getOrientation( x );
|
ForgeDirection side = ForgeDirection.getOrientation( x );
|
||||||
@@ -589,7 +591,10 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
|
|||||||
|
|
||||||
ItemStack current = p != null ? p.getItemStack( PartItemStack.Network ) : null;
|
ItemStack current = p != null ? p.getItemStack( PartItemStack.Network ) : null;
|
||||||
if ( current != null && current.getItem() == myItem && current.getItemDamage() == dmgValue )
|
if ( current != null && current.getItem() == myItem && current.getItemDamage() == dmgValue )
|
||||||
p.readFromStream( data );
|
{
|
||||||
|
if ( p.readFromStream( data ) )
|
||||||
|
updateBlock = true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
removePart( side, false );
|
removePart( side, false );
|
||||||
@@ -607,7 +612,9 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
|
|||||||
removePart( side, false );
|
removePart( side, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
return fc.readFromStream( data );
|
if ( fc.readFromStream( data ) )
|
||||||
|
return true;
|
||||||
|
return updateBlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
ForgeDirection getSide(IPart part)
|
ForgeDirection getSide(IPart part)
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ public class PartCable extends AEBasePart implements IPartCable
|
|||||||
int cs = data.readByte();
|
int cs = data.readByte();
|
||||||
int sideOut = data.readInt();
|
int sideOut = data.readInt();
|
||||||
|
|
||||||
EnumSet<ForgeDirection> myC = connections;
|
EnumSet<ForgeDirection> myC = connections.clone();
|
||||||
boolean wasPowered = powered;
|
boolean wasPowered = powered;
|
||||||
powered = false;
|
powered = false;
|
||||||
boolean chchanged = false;
|
boolean chchanged = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user