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

Commit

Permalink
Generate node map on checkMachine (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
RealSilverMoon authored May 19, 2024
1 parent adcd8f6 commit 3f71393
Showing 1 changed file with 5 additions and 9 deletions.
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

0 comments on commit 3f71393

Please sign in to comment.