Skip to content

Commit

Permalink
better implementation of the fix for #252
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari023 committed Mar 25, 2024
1 parent 6b8d39c commit 7f7cccc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/de/mari_023/ae2wtlib/terminal/WTMenuHost.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.function.BiConsumer;

import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.UnknownNullability;

import net.minecraft.nbt.CompoundTag;
import net.minecraft.resources.ResourceLocation;
Expand Down Expand Up @@ -46,8 +47,10 @@ public abstract class WTMenuHost extends WirelessTerminalMenuHost<ItemWT>
private IActionHost quantumBridge;
public static final ResourceLocation INV_SINGULARITY = AE2wtlib.id("singularity");
private final MEStorage storage;
private ILinkStatus linkStatus = ILinkStatus.ofDisconnected();
private ILinkStatus quantumStatus = ILinkStatus.ofDisconnected();
@UnknownNullability
private ILinkStatus linkStatus;
@UnknownNullability
private ILinkStatus quantumStatus;

public WTMenuHost(ItemWT item, Player player, ItemMenuHostLocator locator,
BiConsumer<Player, ISubMenu> returnToMainMenu) {
Expand All @@ -58,8 +61,6 @@ public WTMenuHost(ItemWT item, Player player, ItemMenuHostLocator locator,
new StackDependentSupplier<>(this::getItemStack, stack -> createInv(player, stack, "viewcells", 5)));
singularityInventory = new SupplierInternalInventory<>(
new StackDependentSupplier<>(this::getItemStack, stack -> createInv(player, stack, "singularity", 1)));
updateConnectedAccessPoint();
updateLinkStatus();
}

@Override
Expand Down

0 comments on commit 7f7cccc

Please sign in to comment.