Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
reobf committed Feb 11, 2025
1 parent 77e671c commit b116e32
Show file tree
Hide file tree
Showing 20 changed files with 510 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ChatComponentTranslation;
Expand All @@ -23,7 +25,11 @@ public BlockStockingCircuitRequestInterceptor() {
setBlockName("proghatches.circuit_interceptor");
setBlockTextureName("proghatches:circuit_interceptor");
}

@Override
public void getSubBlocks(Item itemIn, CreativeTabs tab, List list) {
list.add(new ItemStack(itemIn, 1, 1));
super.getSubBlocks(itemIn, tab, list);
}
@Override
public boolean onBlockActivated(World worldIn, int x, int y, int z, EntityPlayer player, int side, float subX,
float subY, float subZ) {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/reobf/proghatches/block/ItemBlockTooltip.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import java.util.List;

import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public void onFirstTick(IGregTechTileEntity aBaseMetaTileEntity) {
getProxy().onReady();
updateCache();
}

String[] descCache;
@Override
public String[] getDescription() {

return reobf.proghatches.main.Config.get("DHME", ImmutableMap.of());
return descCache==null?(descCache=reobf.proghatches.main.Config.get("DHME", ImmutableMap.of())):descCache;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
public class DualInputHatch extends MTEHatchInputBus implements IConfigurationCircuitSupport, IAddGregtechLogo,
IAddUIWidgets, IDualInputHatch, IProgrammingCoverBlacklisted, IRecipeProcessingAwareDualHatch, ISkipStackSizeCheck,
IOnFillCallback/* ,IMultiCircuitSupport */ {

static int[] AZERO={0};
static java.text.DecimalFormat format = new java.text.DecimalFormat("#,###");
public boolean mMultiFluid;

Expand Down
Loading

0 comments on commit b116e32

Please sign in to comment.