Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
khjxiaogu committed Dec 16, 2024
1 parent b0f7e3b commit eaf6f78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.teammoeg.frostedheart.bootstrap.client.FHTabs;
import com.teammoeg.frostedheart.bootstrap.reference.FHProps;
import com.teammoeg.frostedheart.bootstrap.reference.FHTags;
import com.teammoeg.frostedheart.bootstrap.reference.FHTags.Blocks;
import com.teammoeg.frostedheart.content.agriculture.RyeBlock;
import com.teammoeg.frostedheart.content.agriculture.WhiteTurnipBlock;
import com.teammoeg.frostedheart.content.agriculture.WolfBerryBushBlock;
Expand Down Expand Up @@ -85,7 +84,7 @@

public class FHBlocks {

protected static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, FHMain.MODID);
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, FHMain.MODID);

@Deprecated
protected static <T extends Block> RegistryObject<T> register(String name, Supplier<T> block, String itemName, Function<T, Item> item) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public class FHFluids {
.tag(FHTags.forgeFluidTag("wolfberry_tea"))
.register();

static final DeferredRegister<Fluid> FLUIDS = DeferredRegister.create(ForgeRegistries.FLUIDS, FHMain.MODID);
static final DeferredRegister<FluidType> FLUID_TYPES = DeferredRegister.create(Keys.FLUID_TYPES, FHMain.MODID);
public static final DeferredRegister<Fluid> FLUIDS = DeferredRegister.create(ForgeRegistries.FLUIDS, FHMain.MODID);
public static final DeferredRegister<FluidType> FLUID_TYPES = DeferredRegister.create(Keys.FLUID_TYPES, FHMain.MODID);

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.teammoeg.frostedheart.bootstrap.client.FHTabs;
import com.teammoeg.frostedheart.bootstrap.reference.FHFoodProperties;
import com.teammoeg.frostedheart.bootstrap.reference.FHTags;
import com.teammoeg.frostedheart.bootstrap.reference.FHTags.Items;
import com.teammoeg.frostedheart.content.climate.player.PlayerTemperatureData;
import com.teammoeg.frostedheart.content.health.food.CannedFoodItem;
import com.teammoeg.frostedheart.content.health.food.FHSoupItem;
Expand Down Expand Up @@ -65,14 +64,14 @@
import java.util.function.Function;

import static com.teammoeg.frostedheart.FHMain.REGISTRATE;
import static com.teammoeg.frostedheart.bootstrap.reference.FHTags.*;
import static com.teammoeg.frostedheart.bootstrap.reference.FHTags.forgeItemTag;

/**
* All items.
*/
public class FHItems {

protected static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, FHMain.MODID);
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, FHMain.MODID);

@Deprecated
protected static RegistryObject<Item> register(String name) {
Expand Down

0 comments on commit eaf6f78

Please sign in to comment.