From cc5e8128d3c602786dccad85edd0e122f2b597df Mon Sep 17 00:00:00 2001 From: RealSilverMoon Date: Tue, 14 May 2024 16:06:09 +0800 Subject: [PATCH] Generate node map on checkMachine --- .../multi/GT_MetaTileEntity_TM_teslaCoil.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_teslaCoil.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_teslaCoil.java index 1054825db..9f4acc12e 100644 --- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_teslaCoil.java +++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_teslaCoil.java @@ -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; @@ -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