Skip to content

Commit 2ae9173

Browse files
committed
add super method calls
1 parent dc4a1e1 commit 2ae9173

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed

src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityActiveTransformer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ public <T> T getCapability(Capability<T> capability, EnumFacing side) {
250250
@Override
251251
public void addInformation(ItemStack stack, @Nullable World world, @NotNull List<String> tooltip,
252252
boolean advanced) {
253+
super.addInformation(stack, world, tooltip, advanced);
253254
tooltip.add(I18n.format("gregtech.machine.active_transformer.tooltip1"));
254255
tooltip.add(I18n.format("gregtech.machine.active_transformer.tooltip2"));
255256
tooltip.add(I18n.format("gregtech.machine.active_transformer.tooltip3") + TooltipHelper.RAINBOW_SLOW +

src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityAssemblyLine.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ private static boolean isRecipeAvailable(@NotNull Iterable<? extends IDataAccess
383383
@Override
384384
public void addInformation(ItemStack stack, @Nullable World world, @NotNull List<String> tooltip,
385385
boolean advanced) {
386+
super.addInformation(stack, world, tooltip, advanced);
386387
if (ConfigHolder.machines.orderedAssembly && ConfigHolder.machines.orderedFluidAssembly) {
387388
tooltip.add(I18n.format("gregtech.machine.assembly_line.tooltip_ordered_both"));
388389
} else if (ConfigHolder.machines.orderedAssembly) {

src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityCleanroom.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ protected void addWarningText(List<ITextComponent> textList) {
535535

536536
@Override
537537
public void addInformation(ItemStack stack, @Nullable World player, List<String> tooltip, boolean advanced) {
538+
super.addInformation(stack, player, tooltip, advanced);
538539
tooltip.add(I18n.format("gregtech.machine.cleanroom.tooltip.1"));
539540
tooltip.add(I18n.format("gregtech.machine.cleanroom.tooltip.2"));
540541
tooltip.add(I18n.format("gregtech.machine.cleanroom.tooltip.3"));

src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityFluidDrill.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ protected void addWarningText(List<ITextComponent> textList) {
218218

219219
@Override
220220
public void addInformation(ItemStack stack, @Nullable World world, List<String> tooltip, boolean advanced) {
221+
super.addInformation(stack, world, tooltip, advanced);
221222
tooltip.add(I18n.format("gregtech.machine.fluid_drilling_rig.description"));
222223
tooltip.add(I18n.format("gregtech.machine.fluid_drilling_rig.depletion",
223224
TextFormattingUtil.formatNumbers(100.0 / getDepletionChance())));
@@ -413,4 +414,9 @@ public void addBarHoverText(List<ITextComponent> hoverList, int index) {
413414
public boolean allowsExtendedFacing() {
414415
return false;
415416
}
417+
418+
@Override
419+
public boolean getIsWeatherOrTerrainResistant() {
420+
return true;
421+
}
416422
}

src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityLargeMiner.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public String[] getDescription() {
210210
@Override
211211
public void addInformation(ItemStack stack, @Nullable World player, @NotNull List<String> tooltip,
212212
boolean advanced) {
213+
super.addInformation(stack, player, tooltip, advanced);
213214
int workingAreaChunks = this.minerLogic.getCurrentRadius() * 2 / CHUNK_LENGTH;
214215
tooltip.add(I18n.format("gregtech.machine.miner.multi.modes"));
215216
tooltip.add(I18n.format("gregtech.machine.miner.multi.production"));

src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityNetworkSwitch.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public ICubeRenderer getBaseTexture(IMultiblockPart sourcePart) {
137137
@Override
138138
public void addInformation(ItemStack stack, @Nullable World world, @NotNull List<String> tooltip,
139139
boolean advanced) {
140+
super.addInformation(stack, world, tooltip, advanced);
140141
tooltip.add(I18n.format("gregtech.machine.network_switch.tooltip.1"));
141142
tooltip.add(I18n.format("gregtech.machine.network_switch.tooltip.2"));
142143
tooltip.add(I18n.format("gregtech.machine.network_switch.tooltip.3"));

src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityPowerSubstation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ public <T> T getCapability(Capability<T> capability, EnumFacing side) {
520520
@Override
521521
public void addInformation(ItemStack stack, @Nullable World world, @NotNull List<String> tooltip,
522522
boolean advanced) {
523+
super.addInformation(stack, world, tooltip, advanced);
523524
tooltip.add(I18n.format("gregtech.machine.power_substation.tooltip1"));
524525
tooltip.add(I18n.format("gregtech.machine.power_substation.tooltip2"));
525526
tooltip.add(I18n.format("gregtech.machine.power_substation.tooltip3", MAX_BATTERY_LAYERS));

0 commit comments

Comments
 (0)