mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
Merge branch 'master' into emissive_microblocks
This commit is contained in:
4 files changed
+25
-6
No files matched your search
+6
-3
@@ -3,14 +3,17 @@
|
||||
dependencies {
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.1.11:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenLib:1.1.8:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.3.82-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.3.4:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.4.12-GTNH:dev")
|
||||
|
||||
compileOnly("org.projectlombok:lombok:1.18.24")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
||||
|
||||
shadowImplementation("com.github.GTNewHorizons:CTMLib:1.4.4:dev")
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:waila:1.6.0:dev") {
|
||||
compileOnly("com.github.GTNewHorizons:waila:1.6.2:dev") {
|
||||
transitive = false
|
||||
}
|
||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.4.0:dev") {
|
||||
transitive = false
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import team.chisel.block.BlockAutoChisel;
|
||||
import team.chisel.block.BlockBeaconBase;
|
||||
import team.chisel.block.BlockCarvable;
|
||||
import team.chisel.block.BlockCarvableAntiBlock;
|
||||
import team.chisel.block.BlockCarvableBeacon;
|
||||
import team.chisel.block.BlockCarvableBookshelf;
|
||||
import team.chisel.block.BlockCarvableCarpet;
|
||||
@@ -3028,8 +3029,8 @@ public enum Features {
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addShapelessRecipe(
|
||||
new ItemStack(ChiselBlocks.jackolantern[meta]),
|
||||
new ItemStack(ChiselBlocks.pumpkin[meta], 1),
|
||||
new ItemStack(jackolantern[meta]),
|
||||
new ItemStack(pumpkin[meta], 1),
|
||||
new ItemStack(Item.getItemFromBlock(Blocks.torch), 1));
|
||||
}
|
||||
|
||||
@@ -3580,7 +3581,7 @@ public enum Features {
|
||||
'*',
|
||||
new ItemStack(Blocks.stone, 1),
|
||||
'X',
|
||||
new ItemStack(ChiselBlocks.andesite, 1));
|
||||
new ItemStack(andesite, 1));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -84,4 +84,9 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
|
||||
renderBlocksFullbright.submapSmall = submapSmall;
|
||||
return renderBlocksFullbright;
|
||||
}
|
||||
|
||||
public static void clearRenderBlocksInstance() {
|
||||
renderBlocksFullbright = null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -11,6 +11,7 @@ import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
|
||||
import net.minecraftforge.event.world.BlockEvent;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import com.cricketcraft.chisel.api.IChiselItem;
|
||||
@@ -25,6 +26,7 @@ import cpw.mods.fml.common.gameevent.TickEvent.Phase;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.ServerTickEvent;
|
||||
import team.chisel.Chisel;
|
||||
import team.chisel.carving.Carving;
|
||||
import team.chisel.client.render.SubmapManagerSpecialMaterial;
|
||||
import team.chisel.utils.General;
|
||||
|
||||
public final class ChiselController {
|
||||
@@ -160,4 +162,12 @@ public final class ChiselController {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onWorldUnload(WorldEvent.Unload event) {
|
||||
if (event.world.isRemote) {
|
||||
SubmapManagerSpecialMaterial.clearRenderBlocksInstance();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user