Fix cables not always breaking
This commit is contained in:
parent
5a0f8be435
commit
ba4517d38c
1 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,12 @@ public abstract class CableMultipart extends Multipart implements IOccludingPart
|
||||||
public void onRemoved() {
|
public void onRemoved() {
|
||||||
super.onRemoved();
|
super.onRemoved();
|
||||||
removeFromNetwork();
|
removeFromNetwork();
|
||||||
|
for(EnumFacing dir : EnumFacing.VALUES){
|
||||||
|
CableMultipart multipart = getPartFromWorld(getWorld(), getPos().offset(dir), dir);
|
||||||
|
if(multipart != null){
|
||||||
|
multipart.nearByChange();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue