diff --git a/src/main/java/com/gregtechceu/gtceu/common/machine/electric/MinerMachine.java b/src/main/java/com/gregtechceu/gtceu/common/machine/electric/MinerMachine.java index c086fdf04c..5db8d540fc 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/machine/electric/MinerMachine.java +++ b/src/main/java/com/gregtechceu/gtceu/common/machine/electric/MinerMachine.java @@ -91,6 +91,11 @@ public MinerMachine(IMachineBlockEntity holder, int tier, int speed, int maximum // ***** Initialization ******// ////////////////////////////////////// + @Override + public ManagedFieldHolder getFieldHolder() { + return MANAGED_FIELD_HOLDER; + } + protected ItemStackTransfer createChargerItemHandler(Object... args) { var transfer = new ItemStackTransfer(); transfer.setFilter(item -> GTCapabilityHelper.getElectricItem(item) != null); @@ -210,10 +215,9 @@ protected void chargeBattery() { .memoize((path, inventorySize) -> new EditableMachineUI("misc", path, () -> { WidgetGroup template = createTemplate(inventorySize).createDefault(); SlotWidget batterySlot = createBatterySlot().createDefault(); - batterySlot.setSelfPosition(new Position(79, 62)); + batterySlot.setSelfPosition(new Position(100, 10)); WidgetGroup group = new WidgetGroup(0, 0, Math.max(template.getSize().width + 12, 172), template.getSize().height + 8); - group.addWidget(batterySlot); Size size = group.getSize(); template.setSelfPosition(new Position( @@ -221,6 +225,7 @@ protected void chargeBattery() { (size.height - template.getSize().height) / 2)); group.addWidget(template); + group.addWidget(batterySlot); return group; }, (template, machine) -> { if (machine instanceof MinerMachine minerMachine) {