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

Commit

Permalink
added lapotronium material
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Apr 10, 2024
1 parent 43430d0 commit b28b79b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class GTCoreConfig {
public static BoolValue DISABLE_WOOD_TOOLS;
public static BoolValue DISABLE_CHARCOAL_SMELTING;
public static BoolValue VILLAGER_TRADE_REPLACEMENTS;
public static BoolValue COMPOSTER_OUTPUT_RePLACEMENT;
public static BoolValue COMPOSTER_OUTPUT_REPLACEMENT;
public static EnumValue<CircuitRecipeMode> CIRCUIT_RECIPE_MODE;

public static void createConfig(){
Expand All @@ -39,7 +39,7 @@ public static void createConfig(){
DISABLE_WOOD_TOOLS = section.addBool("disable_wood_tools", true, "If true disables crafting recipes for wood tools(except wood shovels) and hides them in jei/rei - Default: true");
DISABLE_CHARCOAL_SMELTING = section.addBool("disable_charcoal_smelting", true, "If true disables log to charcoal recipes in the vanilla furnace - Default: true");
VILLAGER_TRADE_REPLACEMENTS = section.addBool("villager_trade_replacements", true, "If true replaces emeralds with gt credits in all villager trades - Default: true");
COMPOSTER_OUTPUT_RePLACEMENT = section.addBool("composter_output_replacement", true, "If true makes the composter make fertilizer instead of bonemeal - Default: true");
COMPOSTER_OUTPUT_REPLACEMENT = section.addBool("composter_output_replacement", true, "If true makes the composter make fertilizer instead of bonemeal - Default: true");
CONFIG = AntimatterPlatformUtils.createConfig(GTCore.ID, config);
CONFIG.register();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ public class GTCoreMaterials {
public static Material Brick = AntimatterAPI.register(Material.class, new Material(GTCore.ID, "brick", 0x9b5643, ROUGH));
public static Material Clay = AntimatterAPI.register(Material.class, new Material(GTCore.ID, "clay", 0xc8c8dc, ROUGH));
public static Material Energium = AntimatterAPI.register(Material.class, new Material(GTCore.ID, "energium", 0xe81e21, NONE));
public static Material Lapotronium = AntimatterAPI.register(Material.class, new Material(GTCore.ID, "lapotronium", 0x6464c8, NONE));
public static Material Fireclay = AntimatterAPI.register(Material.class, new Material(GTCore.ID, "fireclay", 0xada09b, ROUGH));


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import io.github.gregtechintergalactical.gtcore.GTCoreConfig;
import io.github.gregtechintergalactical.gtcore.data.GTCoreItems;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.ItemLike;
import net.minecraft.world.level.block.ComposterBlock;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -15,7 +13,7 @@ public class MixinComposterBlock {

@ModifyArg(method = "extractProduce", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/item/ItemStack;<init>(Lnet/minecraft/world/level/ItemLike;)V"))
private static ItemLike modifyResult(ItemLike item){
if (GTCoreConfig.COMPOSTER_OUTPUT_RePLACEMENT.get()){
if (GTCoreConfig.COMPOSTER_OUTPUT_REPLACEMENT.get()){
return GTCoreItems.Fertilizer;
}
return item;
Expand Down

0 comments on commit b28b79b

Please sign in to comment.