diff --git a/api/buildcraft/api/robots/DockingStation.java b/api/buildcraft/api/robots/DockingStation.java index 2c51b901..d252277c 100755 --- a/api/buildcraft/api/robots/DockingStation.java +++ b/api/buildcraft/api/robots/DockingStation.java @@ -101,7 +101,7 @@ public class DockingStation { robotTaking = robot; robotTakingId = robot.getRobotId(); getPipe().scheduleRenderUpdate(); - registry.markDirty(); + registry.registryMarkDirty(); robot.setMainStation(this); registry.take(this, robot.getRobotId()); @@ -118,7 +118,7 @@ public class DockingStation { robotTaking = robot; robotTakingId = robot.getRobotId(); getPipe().scheduleRenderUpdate(); - registry.markDirty(); + registry.registryMarkDirty(); registry.take(this, robot.getRobotId()); return true; @@ -131,7 +131,7 @@ public class DockingStation { if (robotTaking == robot && !linkIsMain) { IRobotRegistry registry = RobotManager.registryProvider.getRegistry(world); unsafeRelease(robot); - registry.markDirty(); + registry.registryMarkDirty(); registry.release(this, robot.getRobotId()); } } diff --git a/api/buildcraft/api/robots/IRobotRegistry.java b/api/buildcraft/api/robots/IRobotRegistry.java index def62db4..b1cb8896 100755 --- a/api/buildcraft/api/robots/IRobotRegistry.java +++ b/api/buildcraft/api/robots/IRobotRegistry.java @@ -56,5 +56,5 @@ public interface IRobotRegistry { void readFromNBT(NBTTagCompound nbt); - void markDirty(); + void registryMarkDirty(); } diff --git a/common/buildcraft/robotics/RobotRegistry.java b/common/buildcraft/robotics/RobotRegistry.java index b41a9d56..461e7899 100755 --- a/common/buildcraft/robotics/RobotRegistry.java +++ b/common/buildcraft/robotics/RobotRegistry.java @@ -359,4 +359,13 @@ public class RobotRegistry extends WorldSavedData implements IRobotRegistry { } } } + + /** + * This function is a wrapper for markDirty(), done this way due to + * obfuscation issues. + */ + @Override + public void registryMarkDirty() { + markDirty(); + } }