Fix cables not always breaking

This commit is contained in:
modmuss50 2016-03-16 16:59:50 +00:00
parent 5a0f8be435
commit ba4517d38c

View file

@ -134,6 +134,12 @@ public abstract class CableMultipart extends Multipart implements IOccludingPart
public void onRemoved() {
super.onRemoved();
removeFromNetwork();
for(EnumFacing dir : EnumFacing.VALUES){
CableMultipart multipart = getPartFromWorld(getWorld(), getPos().offset(dir), dir);
if(multipart != null){
multipart.nearByChange();
}
}
}
@Override