Skip to content

Commit

Permalink
fix override visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
botn365 committed Jun 1, 2024
1 parent 4b2d206 commit d63a25d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/main/java/gregtech/api/graphs/GenerateNodeMapPower.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@

import java.util.ArrayList;
import java.util.HashSet;
import java.util.function.Consumer;

// node map generator for power distribution
public class GenerateNodeMapPower extends GenerateNodeMap {
public static Consumer<BaseMetaPipeEntity> POWER_GENERATION = GenerateNodeMapPower::new;

public GenerateNodeMapPower(BaseMetaPipeEntity aTileEntity) {
generateNode(aTileEntity, null, 1, null, -1, new ArrayList<>(), new HashSet<>());
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/gregtech/api/gui/GT_Slot_Wrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ public void onSlotChange(final ItemStack p_75220_1_, final ItemStack p_75220_2_)
* @param p_75210_2_
*/
@Override
protected void onCrafting(final ItemStack p_75210_1_, final int p_75210_2_) {
public void onCrafting(final ItemStack p_75210_1_, final int p_75210_2_) {
// wrappedSlot.onCrafting(p_75210_1_, p_75210_2_);
}

/**
* @param p_75208_1_
*/
@Override
protected void onCrafting(final ItemStack p_75208_1_) {
public void onCrafting(final ItemStack p_75208_1_) {
// wrappedSlot.onCrafting(p_75208_1_);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
import static gregtech.GT_Mod.GT_FML_LOGGER;
import static gregtech.api.enums.GT_Values.NW;
import static gregtech.api.enums.GT_Values.V;
import static gregtech.api.graphs.GenerateNodeMapPower.POWER_GENERATION;
import static gregtech.api.objects.XSTR.XSTR_INSTANCE;

/**
Expand Down Expand Up @@ -1159,10 +1160,10 @@ public void generatePowerNodes() {
if (TE instanceof BaseMetaPipeEntity) {
Node node = ((BaseMetaPipeEntity) TE).getNode();
if (node == null) {
new GenerateNodeMapPower((BaseMetaPipeEntity) TE);
POWER_GENERATION.accept((BaseMetaPipeEntity) TE);
} else if (node.mCreationTime != time) {
GenerateNodeMap.clearNodeMap(node,-1);
new GenerateNodeMapPower((BaseMetaPipeEntity) TE);
POWER_GENERATION.accept((BaseMetaPipeEntity) TE);
}
}
}
Expand Down

0 comments on commit d63a25d

Please sign in to comment.