Some attempts at getting fluid to render.

This commit is contained in:
modmuss50 2015-11-27 20:41:02 +00:00
parent 0d4b9afd01
commit 6679c595c5
2 changed files with 4 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.fluids.BlockFluidClassic;
import net.minecraftforge.fluids.Fluid;
import reborncore.api.TextureRegistry;
import techreborn.client.TechRebornCreativeTabMisc;
public class BlockFluidBase extends BlockFluidClassic {
@ -13,6 +14,7 @@ public class BlockFluidBase extends BlockFluidClassic {
public BlockFluidBase(Fluid fluid, Material material) {
super(fluid, material);
setCreativeTab(TechRebornCreativeTabMisc.instance);
TextureRegistry.registerFluid(this);
}

View file

@ -6,6 +6,7 @@ import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;
import reborncore.api.fuel.FluidPowerManager;
import reborncore.jsonDestroyers.fluid.FluidModelGenerator;
import techreborn.blocks.fluid.BlockFluidTechReborn;
import techreborn.blocks.fluid.TechRebornFluid;
import techreborn.lib.ModInfo;
@ -199,5 +200,6 @@ public class ModFluids {
fluidWolframium.setUnlocalizedName(fluidWolframium.getUnlocalizedName());
FluidModelGenerator.postInit();
}
}