From d404f073196f43eff9c0c66485693b5aed68051a Mon Sep 17 00:00:00 2001 From: caelwarner Date: Mon, 3 Oct 2022 20:46:16 -0700 Subject: [PATCH] Added invalidateCaps - Changed setRemoved to invalidateCaps. I don't know why I wasn't just using invalidateCaps from the beginning --- .../relays/advanced/SpeedControllerTileEntity.java | 4 ++-- .../advanced/sequencer/SequencedGearshiftTileEntity.java | 4 ++-- .../content/contraptions/relays/gauge/GaugeTileEntity.java | 4 ++-- .../logistics/block/display/DisplayLinkTileEntity.java | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/SpeedControllerTileEntity.java b/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/SpeedControllerTileEntity.java index 0470d8aeb..675ac42f3 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/SpeedControllerTileEntity.java +++ b/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/SpeedControllerTileEntity.java @@ -146,8 +146,8 @@ public class SpeedControllerTileEntity extends KineticTileEntity implements Comp } @Override - public void setRemoved() { - super.setRemoved(); + public void invalidateCaps() { + super.invalidateCaps(); removePeripheral(); } diff --git a/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/sequencer/SequencedGearshiftTileEntity.java b/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/sequencer/SequencedGearshiftTileEntity.java index 8d084e0bf..83787ab58 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/sequencer/SequencedGearshiftTileEntity.java +++ b/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/sequencer/SequencedGearshiftTileEntity.java @@ -175,8 +175,8 @@ public class SequencedGearshiftTileEntity extends SplitShaftTileEntity implement } @Override - public void setRemoved() { - super.setRemoved(); + public void invalidateCaps() { + super.invalidateCaps(); removePeripheral(); } diff --git a/src/main/java/com/simibubi/create/content/contraptions/relays/gauge/GaugeTileEntity.java b/src/main/java/com/simibubi/create/content/contraptions/relays/gauge/GaugeTileEntity.java index 9e74773cf..373858942 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/relays/gauge/GaugeTileEntity.java +++ b/src/main/java/com/simibubi/create/content/contraptions/relays/gauge/GaugeTileEntity.java @@ -72,8 +72,8 @@ public abstract class GaugeTileEntity extends KineticTileEntity implements IHave } @Override - public void setRemoved() { - super.setRemoved(); + public void invalidateCaps() { + super.invalidateCaps(); removePeripheral(); } diff --git a/src/main/java/com/simibubi/create/content/logistics/block/display/DisplayLinkTileEntity.java b/src/main/java/com/simibubi/create/content/logistics/block/display/DisplayLinkTileEntity.java index 19310b53b..bf43c2a16 100644 --- a/src/main/java/com/simibubi/create/content/logistics/block/display/DisplayLinkTileEntity.java +++ b/src/main/java/com/simibubi/create/content/logistics/block/display/DisplayLinkTileEntity.java @@ -192,8 +192,8 @@ public class DisplayLinkTileEntity extends SmartTileEntity implements ComputerCo } @Override - public void setRemoved() { - super.setRemoved(); + public void invalidateCaps() { + super.invalidateCaps(); removePeripheral(); }