Skip to content

Commit

Permalink
Fix dreamcraft is required to open ME Drive GUI (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroscho authored Sep 6, 2024
1 parent 94306e0 commit 5b03b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/appeng/block/storage/BlockDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public boolean onActivated(final World w, final int x, final int y, final int z,

final TileDrive tg = this.getTileEntity(w, x, y, z);
if (tg != null) {
if (Platform.isServer() && Loader.isModLoaded("dreamcraft")) {
if (IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.GT)
if (Platform.isServer()) {
if (Loader.isModLoaded("dreamcraft") && IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.GT)
&& GTUtility.isStackInList(p.getHeldItem(), GregTechAPI.sWireCutterList)) {
if (tg.lockDigitalSingularityCells()) {
p.addChatMessage(PlayerMessages.DriveLocked.get());
Expand Down

0 comments on commit 5b03b88

Please sign in to comment.