Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Generate node map on checkMachine #281

Merged
merged 1 commit into from
May 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,11 @@ public boolean checkMachine_EM(IGregTechTileEntity iGregTechTileEntity, ItemStac
// Calculate coordinates of the top sphere
posTop = getExtendedFacing().getWorldOffset(new Vec3Impl(0, -14, 2)).add(posBMTE);
}
// Generate node map
if (!getBaseMetaTileEntity().isClientSide()) {
teslaSimpleNodeSetAdd(this);
generateTeslaNodeMap(this);
}
return true;
}
return false;
Expand Down Expand Up @@ -817,15 +822,6 @@ public void stopMachine() {
energyFractionDisplay.set(0);
}

@Override
public void onFirstTick_EM(IGregTechTileEntity aBaseMetaTileEntity) {
super.onFirstTick_EM(aBaseMetaTileEntity);
if (!aBaseMetaTileEntity.isClientSide()) {
teslaSimpleNodeSetAdd(this);
generateTeslaNodeMap(this);
}
}

@Override
public boolean onRunningTick(ItemStack aStack) {
// Hysteresis based ePowerPass setting
Expand Down