mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-21 21:02:24 +00:00
- forge microblocks of neonite, antiblock and glotek are now emissive when using shaders
This commit is contained in:
1 parent
df216f68b4
commit
2150548111
4 files changed
+87
-6
No files matched your search
@@ -19,10 +19,13 @@ import com.cricketcraft.chisel.api.ChiselAPIProps;
|
||||
import com.cricketcraft.chisel.api.FMPIMC;
|
||||
import com.cricketcraft.chisel.api.rendering.TextureType;
|
||||
|
||||
import codechicken.microblock.MicroMaterialRegistry;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import team.chisel.block.BlockCarvableGlowie;
|
||||
import team.chisel.client.render.FullBrightMicroMaterial;
|
||||
import team.chisel.ctmlib.ISubmapManager;
|
||||
|
||||
public class CarvableHelper {
|
||||
@@ -187,11 +190,21 @@ public class CarvableHelper {
|
||||
Block block = info.getVariation()
|
||||
.getBlock();
|
||||
|
||||
if (block.renderAsNormalBlock() || block.isOpaqueCube() || block.isNormalCube()) {
|
||||
FMPIMC.registerFMP(
|
||||
block,
|
||||
info.getVariation()
|
||||
.getBlockMeta());
|
||||
if (block instanceof BlockCarvableGlowie) {
|
||||
int meta = info.getVariation()
|
||||
.getBlockMeta();
|
||||
|
||||
MicroMaterialRegistry.registerMaterial(
|
||||
new FullBrightMicroMaterial(block, meta),
|
||||
block.getUnlocalizedName() + ((meta > 0) ? ("_" + meta) : ""));
|
||||
|
||||
} else {
|
||||
if (block.renderAsNormalBlock() || block.isOpaqueCube() || block.isNormalCube()) {
|
||||
FMPIMC.registerFMP(
|
||||
block,
|
||||
info.getVariation()
|
||||
.getBlockMeta());
|
||||
}
|
||||
}
|
||||
|
||||
if (forbidChiseling) return;
|
||||
|
||||
Reference in new issue
Block a user