From 255ae39d8457224f074a2d9a7a06b4cdf298a713 Mon Sep 17 00:00:00 2001 From: minecraft7771 Date: Wed, 4 Oct 2023 11:39:02 +0200 Subject: [PATCH] Prevent maintenance issues from occuring in SE + modules --- .../tile/multi/elevator/TileEntitySpaceElevator.java | 8 ++++++++ .../tile/multi/elevatormodules/TileEntityModuleBase.java | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/main/java/com/gtnewhorizons/gtnhintergalactic/tile/multi/elevator/TileEntitySpaceElevator.java b/src/main/java/com/gtnewhorizons/gtnhintergalactic/tile/multi/elevator/TileEntitySpaceElevator.java index accbfaf..087f165 100644 --- a/src/main/java/com/gtnewhorizons/gtnhintergalactic/tile/multi/elevator/TileEntitySpaceElevator.java +++ b/src/main/java/com/gtnewhorizons/gtnhintergalactic/tile/multi/elevator/TileEntitySpaceElevator.java @@ -765,6 +765,14 @@ public String[] getInfoData() { "---------------------------------------------" }; } + /** + * @return True as the elevator doesn't have maintenance issues + */ + @Override + public boolean doRandomMaintenanceDamage() { + return true; + } + /** * @return Whether to bind the inventory in the GUI or not */ diff --git a/src/main/java/com/gtnewhorizons/gtnhintergalactic/tile/multi/elevatormodules/TileEntityModuleBase.java b/src/main/java/com/gtnewhorizons/gtnhintergalactic/tile/multi/elevatormodules/TileEntityModuleBase.java index 5c2c418..bf5c7e7 100644 --- a/src/main/java/com/gtnewhorizons/gtnhintergalactic/tile/multi/elevatormodules/TileEntityModuleBase.java +++ b/src/main/java/com/gtnewhorizons/gtnhintergalactic/tile/multi/elevatormodules/TileEntityModuleBase.java @@ -202,6 +202,14 @@ public boolean drainEnergyInput(long EUtEffective, long Amperes) { } } + /** + * @return True as modules don't have maintenance issues + */ + @Override + public boolean doRandomMaintenanceDamage() { + return true; + } + /** * Get the maximum EU that this controller can store *