host now responsible for cleanup, fixes onWrench MultiPart deletion.
This commit is contained in:
@@ -496,4 +496,9 @@ public class CableBusPart extends JCuboidPart implements JNormalOcclusion, IReds
|
|||||||
return cb.isEmpty();
|
return cb.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void cleanup() {
|
||||||
|
tile().remPart( this );
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -968,4 +968,9 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
|
|||||||
return myLayerFlags;
|
return myLayerFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void cleanup() {
|
||||||
|
tcb.cleanup();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ public class PartPlacement
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( host.isEmpty() )
|
if ( host.isEmpty() )
|
||||||
world.setBlock( x, y, z, Platform.air );
|
host.cleanup();
|
||||||
|
|
||||||
if ( is != null && !is.isEmpty() )
|
if ( is != null && !is.isEmpty() )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -320,6 +320,11 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
|||||||
return cb.getLayerFlags();
|
return cb.getLayerFlags();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void cleanup() {
|
||||||
|
getWorldObj().setBlock( xCoord, yCoord, zCoord, Platform.air );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Immibis MB Support
|
* Immibis MB Support
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user