Compare commits

...
19 Commits
Author SHA1 Message Date
chochem ff494012ed update dep 2024-01-01 21:45:12 +01:00
chochem d5dbfe5f6d fix mining levels with iguana 2024-01-01 21:45:12 +01:00
Martin Robertz a2b32f4d73 update bs+deps 2024-01-01 20:13:10 +01:00
Caedis 2a93fbd33d spotless 2024-01-01 19:28:34 +01:00
Caedis 52496b770a add vanilla mining levels 2024-01-01 19:28:34 +01:00
Martin Robertz c964972006 backdate deps 2023-12-28 19:12:30 +01:00
Martin Robertz cd20d23b1b update gradle + deps + bs 2023-12-28 18:42:39 +01:00
makamys 631c562f34 Make Forge Multipart dependency optional
Fixes regression in 2150548
2023-12-28 08:59:15 -08:00
makamys 3e6930d1f1 Don't relocate CTMLib
Fixes Techguns compat
2023-12-28 08:58:54 -08:00
Martin Robertz 82955ad34d update waila dep 2023-11-16 13:57:16 +01:00
Pelotrio d726351abc Add method to clear static textures on world unload 2023-11-16 13:52:58 +01:00
Pelotrio ea103bcc80 Remove static keyword from render block variables
The static keyword was removed from several instances of RenderBlocksCTM and RenderBlocksCTMFullbright variables in various SubmapManager classes and ChiselController class. This was done to fix a potential memory leak issue where these static objects could persist in memory even when they're no longer needed. Also, related to this change, the onWorldUnload method that used to clear static reference of RenderBlocksCTMFullbright has been removed from ChiselController.
2023-11-16 13:52:58 +01:00
Martin Robertz f4291635b2 fix dependencies 2023-11-12 11:11:48 +01:00
Martin Robertz 739e5fc9c3 fix 2023-11-12 11:09:00 +01:00
Martin Robertz 0aab92fe6c sa 2023-11-11 22:23:15 +01:00
Martin Robertz 52b110a0da Merge branch 'master' into emissive_microblocks 2023-11-11 22:20:41 +01:00
bombcar 9beab25b7a Update for spotlessApply 2023-11-07 15:32:25 -06:00
iamblackornot f471a0c094 - updated dependencies (promoted ForgeMultipart from CompileOnly to implementation)
- updated BuildScript
2023-11-07 14:00:27 +03:00
iamblackornot 2150548111 - forge microblocks of neonite, antiblock and glotek are now emissive when using shaders 2023-11-06 16:12:00 +03:00
27 changed files with 281 additions and 169 deletions

No files matched your search

+21 -39
View File
@@ -1,4 +1,4 @@
//version: 1699290261
//version: 1704135167
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
@@ -28,27 +28,11 @@ import java.util.concurrent.TimeUnit
buildscript {
repositories {
mavenCentral()
maven {
name 'forge'
url 'https://maven.minecraftforge.net'
}
maven {
// GTNH RetroFuturaGradle and ASM Fork
name "GTNH Maven"
url "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
allowInsecureProtocol = true
url "https://nexus.gtnewhorizons.com/repository/public/"
}
maven {
name 'sonatype'
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
name 'Scala CI dependencies'
url 'https://repo1.maven.org/maven2/'
}
mavenLocal()
}
}
@@ -64,12 +48,12 @@ plugins {
id 'org.ajoberstar.grgit' version '4.1.1' // 4.1.1 is the last jvm8 supporting version, unused, available for addon.gradle
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
id 'com.palantir.git-version' version '3.0.0' apply false
id 'de.undercouch.download' version '5.4.0'
id 'de.undercouch.download' version '5.5.0'
id 'com.github.gmazzo.buildconfig' version '3.1.0' apply false // Unused, available for addon.gradle
id 'com.diffplug.spotless' version '6.13.0' apply false // 6.13.0 is the last jvm8 supporting version
id 'com.modrinth.minotaur' version '2.+' apply false
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.24'
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.26'
}
print("You might want to check out './gradlew :faq' if your build fails.\n")
@@ -133,7 +117,7 @@ propertyDefaultIfUnset("forceEnableMixins", false)
propertyDefaultIfUnset("channel", "stable")
propertyDefaultIfUnset("mappingsVersion", "12")
propertyDefaultIfUnset("usesMavenPublishing", true)
propertyDefaultIfUnset("mavenPublishUrl", "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases")
propertyDefaultIfUnset("mavenPublishUrl", "https://nexus.gtnewhorizons.com/repository/releases/")
propertyDefaultIfUnset("modrinthProjectId", "")
propertyDefaultIfUnset("modrinthRelations", "")
propertyDefaultIfUnset("curseForgeProjectId", "")
@@ -302,7 +286,7 @@ if (apiPackage) {
}
if (accessTransformersFile) {
for (atFile in accessTransformersFile.split(",")) {
for (atFile in accessTransformersFile.split(" ")) {
String targetFile = "src/main/resources/META-INF/" + atFile.trim()
if (!getFile(targetFile).exists()) {
throw new GradleException("Could not resolve \"accessTransformersFile\"! Could not find " + targetFile)
@@ -588,13 +572,15 @@ afterEvaluate {
repositories {
maven {
name 'Overmind forge repo mirror'
url 'https://gregtech.overminddl1.com/'
name = "GTNH Maven"
url = "https://nexus.gtnewhorizons.com/repository/public/"
// Links for convenience:
// Simple HTML browsing: https://nexus.gtnewhorizons.com/service/rest/repository/browse/releases/
// Rich web UI browsing: https://nexus.gtnewhorizons.com/#browse/browse:releases
}
maven {
name = "GTNH Maven"
url = "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
allowInsecureProtocol = true
name 'Overmind forge repo mirror'
url 'https://gregtech.overminddl1.com/'
}
maven {
name 'sonatype'
@@ -628,7 +614,7 @@ repositories {
}
maven {
name = "ic2"
url = getURL("https://maven.ic2.player.to/", "https://maven2.ic2.player.to/")
url = getURL("https://maven2.ic2.player.to/", "https://maven.ic2.player.to/")
content {
includeGroup "net.industrial-craft"
}
@@ -687,6 +673,8 @@ configurations.all {
substitute module('com.github.GTNewHorizons:SpongePoweredMixin') using module(mixinProviderSpecNoClassifer) withClassifier("dev") because("Unimixins replaces other mixin mods")
substitute module('com.github.GTNewHorizons:SpongeMixins') using module(mixinProviderSpecNoClassifer) withClassifier("dev") because("Unimixins replaces other mixin mods")
substitute module('io.github.legacymoddingmc:unimixins') using module(mixinProviderSpecNoClassifer) withClassifier("dev") because("Our previous unimixins upload was missing the dev classifier")
substitute module('org.scala-lang:scala-library:2.11.1') using module('org.scala-lang:scala-library:2.11.5') because('To allow mixing with Java 8 targets')
}
}
@@ -793,12 +781,12 @@ ext.java17PatchDependenciesCfg = configurations.create("java17PatchDependencies"
}
dependencies {
def lwjgl3ifyVersion = '1.5.1'
def lwjgl3ifyVersion = '1.5.7'
if (modId != 'lwjgl3ify') {
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
}
if (modId != 'hodgepodge') {
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.17')
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.35')
}
java17PatchDependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}:forgePatches") {transitive = false}
@@ -973,8 +961,7 @@ if (usesShadowedDependencies.toBoolean()) {
configurations.runtimeElements.outgoing.artifact(tasks.named("shadowJar", ShadowJar))
configurations.apiElements.outgoing.artifact(tasks.named("shadowJar", ShadowJar))
tasks.named("jar", Jar) {
enabled = false
finalizedBy(tasks.shadowJar)
archiveClassifier.set('dev-preshadow')
}
tasks.named("reobfJar", ReobfuscatedJar) {
inputJar.set(tasks.named("shadowJar", ShadowJar).flatMap({it.archiveFile}))
@@ -983,11 +970,6 @@ if (usesShadowedDependencies.toBoolean()) {
javaComponent.withVariantsFromConfiguration(configurations.shadowRuntimeElements) {
skip()
}
for (runTask in ["runClient", "runServer", "runClient17", "runServer17"]) {
tasks.named(runTask).configure {
dependsOn("shadowJar")
}
}
}
ext.publishableDevJar = usesShadowedDependencies.toBoolean() ? tasks.shadowJar : tasks.jar
ext.publishableObfJar = tasks.reobfJar
@@ -1191,7 +1173,7 @@ publishing {
if (usesMavenPublishing.toBoolean() && System.getenv("MAVEN_USER") != null) {
maven {
url = mavenPublishUrl
allowInsecureProtocol = mavenPublishUrl.startsWith("http://") // Mostly for the GTNH maven
allowInsecureProtocol = mavenPublishUrl.startsWith("http://")
credentials {
username = System.getenv("MAVEN_USER") ?: "NONE"
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
@@ -1310,7 +1292,7 @@ def addCurseForgeRelation(String type, String name) {
// Updating
def buildscriptGradleVersion = "8.2.1"
def buildscriptGradleVersion = "8.5"
tasks.named('wrapper', Wrapper).configure {
gradleVersion = buildscriptGradleVersion
+5 -5
View File
@@ -3,18 +3,18 @@
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.4.12-GTNH:dev")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.4.13-GTNH:dev")
implementation("com.github.GTNewHorizons:ForgeMultipart:1.4.4: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.2:dev") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.4.0:dev") {
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.6.5:dev") {
transitive = false
}
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.1.10-GTNH:dev")
compileOnly("curse.maven:ee3-65509:2305023") { // https://www.curseforge.com/minecraft/mc-mods/ee3/files/2305023
transitive = false
+3
View File
@@ -62,3 +62,6 @@ usesShadowedDependencies = true
# Optional parameter to customize the produced artifacts. Use this to preserver artifact naming when migrating older
# projects. New projects should not use this parameter.
#customArchiveBaseName =
# Use the team.chisel.ctmlib package name for CTMLib like upstream Chisel (needed by Techguns)
relocateShadowedDependencies = false
Binary file not shown.
+2 -1
View File
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Vendored
+8 -4
View File
@@ -85,9 +85,6 @@ done
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@@ -133,10 +130,13 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
@@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
-10
View File
@@ -1,14 +1,4 @@
// Add any additional repositories for your dependencies here
repositories {
maven {
name = "GTNH"
url = "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
}
maven {
url "https://cursemaven.com"
}
maven {
url = "https://jitpack.io"
}
}
@@ -11,7 +11,7 @@ public interface IAdvancedChisel {
/**
* Gets the next mode the button in the GUI should switch to given the current mode.
*
*
* @param stack The {@link ItemStack} representing the chisel
* @param current The {@link IChiselMode} that is currently active
* @return The next {@link IChiselMode} in the loop
@@ -20,7 +20,7 @@ public interface IAdvancedChisel {
/**
* Gets an {@link IChiselMode} instance from a String name
*
*
* @param chisel The {@link ItemStack} representing the chisel
* @param name The name of the {@link IChiselMode mode}
* @return An {@link IChiselMode} that has the name {@code name}
@@ -19,7 +19,7 @@ public interface ICarvable extends ICTMBlock<IVariationInfo> {
* <p>
* Typically you can refer this method to {@link CarvableHelper#getVariation(int)} but this method is provided for
* more complex metadata handling.
*
*
* @param metadata The metadata of the block
* @param world {@link IBlockAccess} object, usually a world. Use of {@link IBlockAccess} Is necessary due to
* this method's use in rendering.
@@ -34,7 +34,7 @@ public interface ICarvable extends ICTMBlock<IVariationInfo> {
/**
* Gets the {@link ISubmapManager} for this block when it is in item form.
*
*
* @return A {@link ISubmapManager}
*/
@Override
@@ -14,7 +14,7 @@ public interface IChiselItem {
/**
* Checks whether the chisel can have its GUI opened
*
*
* @param world {@link World} object
* @param player The player holding the chisel. It can always be assumed that the player's current item will be
* this.
@@ -25,7 +25,7 @@ public interface IChiselItem {
/**
* Called when an item is chiseled using this chisel
*
*
* @param world {@link World} object
* @param chisel The {@link ItemStack} representing the chisel
* @param target The {@link ICarvingVariation} representing the target item
@@ -39,7 +39,7 @@ public interface IChiselItem {
* <p>
* It is not necessary to take into account whether this item <i>has</i> any variants, this method will only be
* called after that check.
*
*
* @param world {@link World} object
* @param chisel The {@link ItemStack} representing the chisel
* @param target The {@link ICarvingVariation} representing the target item
@@ -49,7 +49,7 @@ public interface IChiselItem {
/**
* Allows you to control if your item can chisel this block in the world.
*
*
* @param world World object
* @param player {@link EntityPlayer The player} holding the chisel.
* @param x X coord of the block being chiseled
@@ -63,7 +63,7 @@ public interface IChiselItem {
/**
* Allows you to control if your item has chiseling modes.
*
*
* @param chisel The {@link ItemStack} representing the chisel.
* @return True if the chisel supports modes. False otherwise.
*/
@@ -20,9 +20,12 @@ import com.cricketcraft.chisel.api.FMPIMC;
import com.cricketcraft.chisel.api.rendering.TextureType;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
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.compat.fmp.FMPCompat;
import team.chisel.ctmlib.ISubmapManager;
public class CarvableHelper {
@@ -187,11 +190,15 @@ public class CarvableHelper {
Block block = info.getVariation()
.getBlock();
if (block.renderAsNormalBlock() || block.isOpaqueCube() || block.isNormalCube()) {
FMPIMC.registerFMP(
block,
info.getVariation()
.getBlockMeta());
if (Loader.isModLoaded("ForgeMultipart") && block instanceof BlockCarvableGlowie) {
FMPCompat.registerGlowieVariation(info, block);
} else {
if (block.renderAsNormalBlock() || block.isOpaqueCube() || block.isNormalCube()) {
FMPIMC.registerFMP(
block,
info.getVariation()
.getBlockMeta());
}
}
if (forbidChiseling) return;
@@ -14,7 +14,7 @@ public class CarvingUtils {
/**
* A simple way to compare two {@link ICarvingVariation} objects based on the {@link ICarvingVariation#getOrder()
* getOrder()} method.
*
*
* @param v1 The first {@link ICarvingVariation variation}.
* @param v2 The second {@link ICarvingVariation variation}.
* @return A positive integer if the first's order is greater, a negative integer if the second's is greater, and 0
@@ -26,7 +26,7 @@ public class CarvingUtils {
/**
* Gets an {@link ItemStack} representing the passed {@link ICarvingVariation}.
*
*
* @param variation An {@link ICarvingVariation}
* @return An {@link ItemStack}
*/
@@ -48,7 +48,7 @@ public class CarvingUtils {
/**
* Creates a standard {@link ICarvingVariation} for the given data. Use this if you do not need any custom behavior
* in your own variation.
*
*
* @param block The block of the variation
* @param metadata The metadata of both the block and item
* @param order The sorting order.
@@ -61,7 +61,7 @@ public class CarvingUtils {
/**
* Creates a standard {@link ICarvingGroup} for the given name. Use this if you do not need any custom behavior in
* your own group.
*
*
* @param name The name of the group.
* @return A standard {@link ICarvingGroup} instance.
*/
@@ -18,7 +18,7 @@ public interface ICarvingRegistry {
/**
* Finds the group the block/meta pair belongs to in the registry.
*
*
* @param block The block of the variation
* @param meta The metadata of the variation
* @return The {@link ICarvingGroup} that the block/meta pair belongs to
@@ -27,7 +27,7 @@ public interface ICarvingRegistry {
/**
* Gets an {@link ICarvingGroup} by its name.
*
*
* @param name The name of the group
* @return An {@link ICarvingGroup}
*/
@@ -35,7 +35,7 @@ public interface ICarvingRegistry {
/**
* Gets the {@link ICarvingVariation} instance represented by this block/meta pair.
*
*
* @param block The block of the variatoin
* @param meta The metadata of the variation
* @return The {@link ICarvingVariation} containing this block/meta pair
@@ -44,7 +44,7 @@ public interface ICarvingRegistry {
/**
* Gets the list of {@link ICarvingVariation}s from the group that contains this block/meta pair.
*
*
* @param block The block of the variation
* @param meta The metadata of the variation
* @return All of the {@link ICarvingVariation}s in the group that contains this block/meta pair
@@ -53,7 +53,7 @@ public interface ICarvingRegistry {
/**
* Gets the oredict name for the group that contains this block/meta pair.
*
*
* @param block The block of the variation
* @param meta The metadata of the variation
* @return A string oredict name for the group
@@ -62,7 +62,7 @@ public interface ICarvingRegistry {
/**
* Gets the possible output items for this {@link ItemStack}. To be used for machines/GUIs that chisel items.
*
*
* @param chiseled The {@link ItemStack} being chiseled
* @return A list of stacks that can be chiseled from the passed {@link ItemStack stack}
*/
@@ -70,7 +70,7 @@ public interface ICarvingRegistry {
/**
* Gets the sound resource string for the group represented by this block/meta pair.
*
*
* @param block The block of the variation
* @param metadata The metadata of the variation
* @return The string resource for the sound that can be used in
@@ -83,7 +83,7 @@ public interface ICarvingRegistry {
* <p>
* Mostly a convenience for calling {@link #getVariationSound(Block, int)} with
* {@link Block#getBlockFromItem(Item)}.
*
*
* @param item The item of the variation
* @param metadata The metadata of the variation
* @return The string resource for the sound that can be used in
@@ -100,7 +100,7 @@ public interface ICarvingRegistry {
/**
* Adds a variation to the registry.
*
*
* @param groupName The name of the group to add to.
* @param block The block of the variation
* @param metadata The metadata of the variation
@@ -111,7 +111,7 @@ public interface ICarvingRegistry {
/**
* Adds a variation to the registry.
*
*
* @param groupName The name of the group to add to
* @param variation The {@link ICarvingVariation} to add
*/
@@ -119,7 +119,7 @@ public interface ICarvingRegistry {
/**
* Adds a group to the registry.
*
*
* @param group The {@link ICarvingGroup} to add.
*/
void addGroup(ICarvingGroup group);
@@ -130,7 +130,7 @@ public interface ICarvingRegistry {
* This in effect removes all variations associated with the group, though they are not explicitly removed from the
* object. If you maintain a reference to the {@link ICarvingGroup} that is removed, it will still contain its
* variations.
*
*
* @param groupName The name of the group to remove.
* @return The {@link ICarvingGroup} that was removed.
*/
@@ -139,7 +139,7 @@ public interface ICarvingRegistry {
/**
* Removes a varaition with the passed {@link Block} and metadata from the registry. If this variation is registered
* with mutiple groups, it will remove it from all of them.
*
*
* @param block The {@link Block} of the {@link ICarvingVariation variation}
* @param metadata The metadata of the {@link ICarvingVariation variation}
* @return The ICarvingVariation that was removed. Null if nothing was removed.
@@ -149,7 +149,7 @@ public interface ICarvingRegistry {
/**
* Removes a varaition with the passed {@link Block} and metadata from the registry, but only from the specified
* {@link ICarvingGroup} name.
*
*
* @param block The {@link Block} of the {@link ICarvingVariation variation}
* @param metadata The metadata of the {@link ICarvingVariation variation}
* @param group The name of the group that the variation should be removed from
@@ -162,7 +162,7 @@ public interface ICarvingRegistry {
* <p>
* Doing this means that all blocks that are registered to this oredict name will act as if they are a part of this
* group.
*
*
* @param groupName The name of the group
* @param oreName The oredict name
*/
@@ -173,7 +173,7 @@ public interface ICarvingRegistry {
* <p>
* This is the sound that is used when a block from this group is chiseled. <br/>
* Does <i>not</i> need to be explicitly set.
*
*
* @param name The name of the group
* @param sound The resource string for the sound
*/
@@ -42,7 +42,7 @@ public enum TextureType {
register.registerIcon(modName + ":" + texturePath + "-top")
};
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
IIcon[] icons = (IIcon[]) cachedObject;
@@ -57,7 +57,7 @@ public enum TextureType {
register.registerIcon(modName + ":" + texturePath + "-top")
};
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
IIcon[] icons = (IIcon[]) cachedObject;
@@ -65,18 +65,18 @@ public enum TextureType {
}
},
CTMV("ctmv", "top"){
@Override
protected Object registerIcons(ICarvingVariation variation, String modName, String texturePath, IIconRegister register) {
return Pair.of(new TextureSubmap(register.registerIcon(modName + ":" + texturePath + "-ctmv"), 2, 2), register.registerIcon(modName + ":" + texturePath + "-top"));
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
Pair<TextureSubmap, IIcon> data = (Pair<TextureSubmap, IIcon>) cachedObject;
return side < 2 ? data.getRight() : data.getLeft().getSubIcon(0, 0);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
Pair<TextureSubmap, IIcon> data = (Pair<TextureSubmap, IIcon>) cachedObject;
@@ -96,13 +96,13 @@ public enum TextureType {
return map.getSubIcon(1, 0);
return map.getSubIcon(0, 0);
}
@Override
@SideOnly(Side.CLIENT)
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
RenderBlocksColumn ret = theRenderBlocksColumn;
Pair<TextureSubmap, IIcon> data = (Pair<TextureSubmap, IIcon>) cachedObject;
ret.blockAccess = world;
ret.renderMaxX = 1.0;
ret.renderMaxY = 1.0;
@@ -117,13 +117,13 @@ public enum TextureType {
@Override
protected Object registerIcons(ICarvingVariation variation, String modName, String texturePath, IIconRegister register) {
return Pair.of(new TextureSubmap(register.registerIcon(modName + ":" + texturePath + "-ctmh"), 2, 2), register.registerIcon(modName + ":" + texturePath + "-top"));
}
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
return CTMV.getIcon(variation, cachedObject, side, meta);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
Pair<TextureSubmap, IIcon> data = (Pair<TextureSubmap, IIcon>) cachedObject;
@@ -143,7 +143,7 @@ public enum TextureType {
p = ctm.isConnected(world, x, y, z - 1, side, block, meta);
n = ctm.isConnected(world, x, y, z + 1, side, block, meta);
}
TextureSubmap map = data.getLeft();
if (p && n)
return map.getSubIcon(1, 0);
@@ -159,14 +159,14 @@ public enum TextureType {
protected Object registerIcons(ICarvingVariation variation, String modName, String texturePath, IIconRegister register) {
return new TextureSubmap(register.registerIcon(modName + ":" + texturePath + "-v9"), 3, 3);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
return ((TextureSubmap)cachedObject).getSubIcon(1, 1);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
return getVIcon(this, (TextureSubmap) cachedObject, x, y, z, side);
}
},
@@ -175,12 +175,12 @@ public enum TextureType {
protected Object registerIcons(ICarvingVariation variation, String modName, String texturePath, IIconRegister register) {
return new TextureSubmap(register.registerIcon(modName + ":" + texturePath + "-v4"), 2, 2);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
return ((TextureSubmap)cachedObject).getSubIcon(0, 0);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
return getVIcon(this, (TextureSubmap) cachedObject, x, y, z, side);
@@ -196,12 +196,12 @@ public enum TextureType {
new TextureSubmap(baseIcon, 2, 2)
);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
return ((Triple<IIcon, ?, ?>)cachedObject).getLeft();
}
@Override
@SideOnly(Side.CLIENT)
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
@@ -220,13 +220,13 @@ public enum TextureType {
@Override
protected Object registerIcons(ICarvingVariation variation, String modName, String texturePath, IIconRegister register) {
return new TextureSubmap(register.registerIcon(modName + ":" + texturePath + "-r16"), 4, 4);
}
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
return V9.getIcon(variation, cachedObject, side, meta);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
return getRIcon(this, (TextureSubmap) cachedObject, x, y, z, side);
@@ -236,30 +236,30 @@ public enum TextureType {
@Override
protected Object registerIcons(ICarvingVariation variation, String modName, String texturePath, IIconRegister register) {
return new TextureSubmap(register.registerIcon(modName + ":" + texturePath + "-r9"), 3, 3);
}
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
return V9.getIcon(variation, cachedObject, side, meta);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
return getRIcon(this, (TextureSubmap) cachedObject, x, y, z, side);
}
},
R4("r4"){
@Override
protected Object registerIcons(ICarvingVariation variation, String modName, String texturePath, IIconRegister register) {
return new TextureSubmap(register.registerIcon(modName + ":" + texturePath + "-r4"), 2, 2);
}
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
return V4.getIcon(variation, cachedObject, side, meta);
}
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
return getRIcon(this, (TextureSubmap) cachedObject, x, y, z, side);
@@ -267,9 +267,9 @@ public enum TextureType {
},
NORMAL,
CUSTOM;
/* Some util stuff for shared code between v* and r* */
public static IIcon getVIcon(TextureType type, TextureSubmap map, int x, int y, int z, int side) {
int variationSize = (type == TextureType.V9) ? 3 : 2;
@@ -304,23 +304,23 @@ public enum TextureType {
return map.getSubIcon(index % variationSize, index / variationSize);
}
public static IIcon getRIcon(TextureType type, TextureSubmap map, int x, int y, int z, int side) {
rand.setSeed(getCoordinateRandom(x, y, z));
rand.nextBoolean();
int size = type == TextureType.R4 ? 2 : type == TextureType.R9 ? 3 : 4;
return map.getSubIcon(rand.nextInt(size), rand.nextInt(size));
}
private static long getCoordinateRandom(int x, int y, int z) {
// MC 1.8 code...
long l = (x * 3129871) ^ z * 116129781L ^ y;
l = l * l * 42317861L + l * 11L;
return l;
}
/* End of that mess */
private static final TextureType[] VALUES;
private static final CTM ctm = CTM.getInstance();
private static final Random rand = new Random();
@@ -337,31 +337,36 @@ public enum TextureType {
private TextureType(String... suffixes) {
this.suffixes = suffixes.length == 0 ? new String[] { "" } : suffixes;
}
private static void initStatics() {
if (theRenderBlocksCTM == null) {
theRenderBlocksCTM = new RenderBlocksCTM();
theRenderBlocksColumn = new RenderBlocksColumn();
}
}
public ISubmapManager createManagerFor(ICarvingVariation variation, String texturePath) {
public static void clearStatics() {
theRenderBlocksCTM = null;
theRenderBlocksColumn = null;
}
public ISubmapManager createManagerFor(ICarvingVariation variation, String texturePath) {
return new SubmapManagerDefault(this, variation, texturePath);
}
public ISubmapManager createManagerFor(ICarvingVariation variation, Block block, int meta) {
return new SubmapManagerExistingIcon(this, variation, block, meta);
}
@SideOnly(Side.CLIENT)
protected Object registerIcons(ICarvingVariation variation, String modName, String texturePath, IIconRegister register) {
return register.registerIcon(modName + ":" + texturePath);
}
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int side, int meta) {
return (IIcon) cachedObject;
}
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
return getIcon(variation, cachedObject, side, meta);
}
@@ -370,7 +375,7 @@ public enum TextureType {
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
return rendererOld;
}
public static TextureType getTypeFor(CarvableHelper inst, String modid, String path) {
if (path == null) {
return CUSTOM;
@@ -388,7 +393,7 @@ public enum TextureType {
}
return CUSTOM;
}
// This is ugly, but faster than class.getResource
private static boolean exists(String modid, String path, String postfix) {
ResourceLocation rl = new ResourceLocation(modid, "textures/blocks/" + path + postfix + ".png");
@@ -399,18 +404,18 @@ public enum TextureType {
return false;
}
}
@SideOnly(Side.CLIENT)
public abstract static class AbstractSubmapManager implements ISubmapManager {
protected final TextureType type;
protected ICarvingVariation variation;
protected Object cachedObject;
private AbstractSubmapManager(TextureType type, ICarvingVariation variation) {
this.type = type;
this.variation = variation;
}
@Override
public IIcon getIcon(int side, int meta) {
return type.getIcon(variation, cachedObject, side, meta);
@@ -420,7 +425,7 @@ public enum TextureType {
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
return type.getIcon(variation, cachedObject, world, x, y, z, side, world.getBlockMetadata(x, y, z));
}
@Override
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
@@ -428,15 +433,15 @@ public enum TextureType {
rb.setRenderBoundsFromBlock(block);
return rb;
}
@Override
public void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
}
@Override
public void postRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
public void postRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
}
public Object getCachedObject() {
return cachedObject;
}
@@ -446,7 +451,7 @@ public enum TextureType {
private static class SubmapManagerDefault extends AbstractSubmapManager {
private String texturePath;
private SubmapManagerDefault(TextureType type, ICarvingVariation variation, String texturePath) {
super(type, variation);
this.texturePath = texturePath;
@@ -457,24 +462,24 @@ public enum TextureType {
cachedObject = type.registerIcons(variation, modName, texturePath, register);
}
}
@SideOnly(Side.CLIENT)
private static class SubmapManagerExistingIcon extends AbstractSubmapManager {
private Block block;
private int meta;
private SubmapManagerExistingIcon(TextureType type, ICarvingVariation variation, Block block, int meta) {
super(type, variation);
this.block = block;
this.meta = meta;
}
@Override
public IIcon getIcon(int side, int meta) {
return block.getIcon(side, this.meta);
}
@Override
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
return getIcon(side, world.getBlockMetadata(x, y, z));
@@ -484,4 +489,4 @@ public enum TextureType {
public void registerIcons(String modName, Block block, IIconRegister register) {
}
}
}
}
+4
View File
@@ -75,6 +75,7 @@ public class Chisel {
public static final BlockCarvable.SoundType soundMetalFootstep = new BlockCarvable.SoundType("metal", 1.0f, 1.0f);
public static boolean multipartLoaded = false;
public static boolean gtnhLoaded = false;
public static boolean iguanaTweaksLoaded = false;
public static int renderEldritchId;
public static int renderAutoChiselId;
public static int renderGlowId;
@@ -148,6 +149,9 @@ public class Chisel {
if (Loader.isModLoaded("dreamcraft")) {
gtnhLoaded = true;
}
if (Loader.isModLoaded("IguanaTweaksTConstruct")) {
iguanaTweaksLoaded = true;
}
TabsInit.preInit();
Features.preInit();
Statistics.init();
+42 -2
View File
@@ -47,7 +47,6 @@ 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;
@@ -237,7 +236,7 @@ public enum Features {
@Override
void addBlocks() {
BlockCarvable antiBlock = (BlockCarvable) new BlockCarvableAntiBlock()
BlockCarvable antiBlock = (BlockCarvable) new BlockCarvableGlowie(Material.rock)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks);
if (!Configurations.allowChiselCrossColors) {
@@ -940,6 +939,13 @@ public enum Features {
.setHardness(5F)
.setResistance(10F)
.setStepSound(Block.soundTypeMetal);
if (Chisel.iguanaTweaksLoaded) {
diamond_block.setHarvestLevel("pickaxe", 4);
} else {
diamond_block.setHarvestLevel("pickaxe", 2);
}
Carving.chisel.addVariation("diamond_block", Blocks.diamond_block, 0, 0);
diamond_block.carverHelper.addVariation("tile.diamond.1.desc", 1, "diamond/terrain-diamond-embossed");
diamond_block.carverHelper.addVariation("tile.diamond.2.desc", 2, "diamond/terrain-diamond-gem");
@@ -1032,6 +1038,13 @@ public enum Features {
.setHardness(5.0F)
.setResistance(10.0F)
.setStepSound(Block.soundTypeMetal);
if (Chisel.iguanaTweaksLoaded) {
emerald_block.setHarvestLevel("pickaxe", 4);
} else {
emerald_block.setHarvestLevel("pickaxe", 2);
}
Carving.chisel.addVariation("emerald_block", Blocks.emerald_block, 0, 0);
emerald_block.carverHelper.addVariation("tile.emerald.1.desc", 1, "emerald/panel");
emerald_block.carverHelper.addVariation("tile.emerald.2.desc", 2, "emerald/panelclassic");
@@ -1513,6 +1526,13 @@ public enum Features {
.setHardness(3F)
.setResistance(10F)
.setStepSound(Block.soundTypeMetal);
if (Chisel.iguanaTweaksLoaded) {
gold_block.setHarvestLevel("pickaxe", 3);
} else {
gold_block.setHarvestLevel("pickaxe", 2);
}
Carving.chisel.addVariation("gold_block", Blocks.gold_block, 0, 0);
gold_block.carverHelper.addVariation("tile.gold.1.desc", 1, "gold/terrain-gold-largeingot");
gold_block.carverHelper.addVariation("tile.gold.2.desc", 2, "gold/terrain-gold-smallingot");
@@ -1921,6 +1941,13 @@ public enum Features {
.setHardness(5F)
.setResistance(10F)
.setStepSound(Block.soundTypeMetal);
if (Chisel.iguanaTweaksLoaded) {
iron_block.setHarvestLevel("pickaxe", 2);
} else {
iron_block.setHarvestLevel("pickaxe", 1);
}
Carving.chisel.addVariation("iron_block", Blocks.iron_block, 0, 0);
iron_block.carverHelper.addVariation("tile.iron.1.desc", 1, "iron/terrain-iron-largeingot");
iron_block.carverHelper.addVariation("tile.iron.2.desc", 2, "iron/terrain-iron-smallingot");
@@ -2032,6 +2059,13 @@ public enum Features {
.setHardness(3F)
.setResistance(5F)
.setStepSound(Block.soundTypeStone);
if (Chisel.iguanaTweaksLoaded) {
lapis_block.setHarvestLevel("pickaxe", 2);
} else {
lapis_block.setHarvestLevel("pickaxe", 1);
}
Carving.chisel.addVariation("lapis_block", Blocks.lapis_block, 0, 0);
lapis_block.carverHelper.addVariation("tile.lapis.1.desc", 1, "lapis/terrain-lapisblock-chunky");
lapis_block.carverHelper.addVariation("tile.lapis.2.desc", 2, "lapis/terrain-lapisblock-panel");
@@ -2790,6 +2824,12 @@ public enum Features {
.setResistance(2000.0F)
.setStepSound(Block.soundTypeStone);
if (Chisel.iguanaTweaksLoaded) {
obsidian.setHarvestLevel("pickaxe", 5);
} else {
obsidian.setHarvestLevel("pickaxe", 3);
}
Carving.chisel.addVariation("obsidian", Blocks.obsidian, 0, 0);
obsidian.carverHelper.addVariation("tile.obsidian.1.desc", 1, "obsidian/pillar");
obsidian.carverHelper.addVariation("tile.obsidian.2.desc", 2, "obsidian/pillar-quartz");
@@ -104,7 +104,7 @@ public class BlockCarvable extends Block implements ICarvable {
/**
* Creates a SoundType with automatic names for step and break sounds. Sound names dig.soundName and
* step.soundName must be specified in the sounds.json
*
*
* @param soundName block of the sound. Will automatically be expanded to "mod:dig.soundName" and
* "mod:step.soundName" respectively)
* @param volume default 1.0f
@@ -120,7 +120,7 @@ public class BlockCarvable extends Block implements ICarvable {
/**
* Creates a SoundType with manual names for step and break sounds. Sound names must be specified in the
* sounds.json
*
*
* @param soundNameBreak block break sound
* @param soundNameStep block step sound
* @param volume default 1.0f
@@ -136,7 +136,7 @@ public class BlockCarvable extends Block implements ICarvable {
/**
* Creates a SoundType with manual names for step, break and place sounds. Sound names must be specified in the
* sounds.json
*
*
* @param soundNameBreak block break sound
* @param soundNameStep block step sound
* @param soundNamePlace block place sound
@@ -92,7 +92,7 @@ public class BlockCarvableSand extends BlockSand implements ICarvable {
/**
* Creates a SoundType with automatic names for step and break sounds. Sound names dig.soundName and
* step.soundName must be specified in the sounds.json
*
*
* @param soundName block of the sound. Will automatically be expanded to "mod:dig.soundName" and
* "mod:step.soundName" respectively)
* @param volume default 1.0f
@@ -108,7 +108,7 @@ public class BlockCarvableSand extends BlockSand implements ICarvable {
/**
* Creates a SoundType with manual names for step and break sounds. Sound names must be specified in the
* sounds.json
*
*
* @param soundNameBreak block break sound
* @param soundNameStep block step sound
* @param volume default 1.0f
@@ -124,7 +124,7 @@ public class BlockCarvableSand extends BlockSand implements ICarvable {
/**
* Creates a SoundType with manual names for step, break and place sounds. Sound names must be specified in the
* sounds.json
*
*
* @param soundNameBreak block break sound
* @param soundNameStep block step sound
* @param soundNamePlace block place sound
@@ -0,0 +1,35 @@
package team.chisel.client.render;
import codechicken.lib.render.CCRenderState;
public class FullBrightLighting implements CCRenderState.IVertexOperation {
public static FullBrightLighting instance = new FullBrightLighting();
public int id;
public boolean load() {
if (!CCRenderState.computeLighting) {
return false;
}
CCRenderState.pipeline.addDependency(CCRenderState.colourAttrib);
CCRenderState.pipeline.addDependency(CCRenderState.lightCoordAttrib);
return true;
}
public void operate() {
CCRenderState.setBrightness(FULL_BRIGHT_BLOCK_BRIGHTNESS);
}
public int operationID() {
return id;
}
{
id = CCRenderState.registerOperation();
}
// magic number from 'RenderBlocksCTMFullbright'
// this is the brightness of the neonite, anti, glotek blocks
// so we use it for custom microblock lighting
private final static int FULL_BRIGHT_BLOCK_BRIGHTNESS = 0xF000F0;
}
@@ -0,0 +1,33 @@
package team.chisel.client.render;
import net.minecraft.block.Block;
import codechicken.lib.render.CCRenderState;
import codechicken.lib.render.ColourMultiplier;
import codechicken.lib.vec.Cuboid6;
import codechicken.lib.vec.Vector3;
import codechicken.microblock.BlockMicroMaterial;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class FullBrightMicroMaterial extends BlockMicroMaterial {
public FullBrightMicroMaterial(final Block block, final int meta) {
super(block, meta);
}
@SideOnly(Side.CLIENT)
public void renderMicroFace(final Vector3 pos, final int pass, final Cuboid6 bounds) {
CCRenderState.pipeline.builder()
.add((CCRenderState.IVertexOperation) pos.translation())
.add((CCRenderState.IVertexOperation) this.icont())
.add((CCRenderState.IVertexOperation) ColourMultiplier.instance(FULL_BRIGHT_COLOR_MULTIPLIER))
.add((CCRenderState.IVertexOperation) FullBrightLighting.instance)
.render();
}
// magic number from 'RenderBlocksCTMFullbright'
// this is what makes the neonite, anti, glotek blocks burn bright as my ass does
// so we use it for custom microblock render
private final static int FULL_BRIGHT_COLOR_MULTIPLIER = 0xFFFFFFFF;
}
@@ -75,7 +75,7 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
};
@SideOnly(Side.CLIENT)
private static RenderBlocksCTMFullbright rb;
private RenderBlocksCTMFullbright rb;
private String color;
private TextureSubmap submap, submapSmall;
@@ -14,7 +14,7 @@ import team.chisel.ctmlib.TextureSubmap;
public class SubmapManagerCarpetFloor extends SubmapManagerBase {
@SideOnly(Side.CLIENT)
private static RenderBlocksCTM rb;
private RenderBlocksCTM rb;
private TextureSubmap submap;
private TextureSubmap submapSmall;
@@ -16,7 +16,7 @@ import team.chisel.ctmlib.TextureSubmap;
public class SubmapManagerSlab implements ISubmapManager {
@SideOnly(Side.CLIENT)
private static RenderBlocksCTM rb;
private RenderBlocksCTM rb;
private TextureSubmap submap;
private TextureSubmap submapSmall;
@@ -48,7 +48,7 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
}
};
private static RenderBlocksCTMFullbright renderBlocksFullbright;
private RenderBlocksCTMFullbright renderBlocksFullbright;
private String color;
private MaterialType materialType;
@@ -85,8 +85,4 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
return renderBlocksFullbright;
}
public static void clearRenderBlocksInstance() {
renderBlocksFullbright = null;
}
}
@@ -3,13 +3,16 @@ package team.chisel.compat.fmp;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import com.cricketcraft.chisel.api.carving.IVariationInfo;
import com.google.common.collect.Lists;
import codechicken.lib.vec.BlockCoord;
import codechicken.microblock.MicroMaterialRegistry;
import codechicken.multipart.MultiPartRegistry;
import codechicken.multipart.MultiPartRegistry.IPartConverter;
import codechicken.multipart.MultiPartRegistry.IPartFactory;
import codechicken.multipart.TMultiPart;
import team.chisel.client.render.FullBrightMicroMaterial;
import team.chisel.init.ChiselBlocks;
public class FMPCompat implements IPartFactory, IPartConverter {
@@ -42,4 +45,13 @@ public class FMPCompat implements IPartFactory, IPartConverter {
}
return null;
}
public static void registerGlowieVariation(IVariationInfo info, Block block) {
int meta = info.getVariation()
.getBlockMeta();
MicroMaterialRegistry.registerMaterial(
new FullBrightMicroMaterial(block, meta),
block.getUnlocalizedName() + ((meta > 0) ? ("_" + meta) : ""));
}
}
@@ -118,7 +118,7 @@ public class ContainerAutoChisel extends Container {
/**
* Added validation of slot input
*
*
* @author CrazyPants
*/
@Override
@@ -18,6 +18,7 @@ import com.cricketcraft.chisel.api.IChiselItem;
import com.cricketcraft.chisel.api.carving.ICarvingGroup;
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
import com.cricketcraft.chisel.api.carving.IChiselMode;
import com.cricketcraft.chisel.api.rendering.TextureType;
import com.google.common.collect.Queues;
import cpw.mods.fml.common.FMLCommonHandler;
@@ -26,7 +27,6 @@ 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 {
@@ -166,7 +166,7 @@ public final class ChiselController {
@SubscribeEvent
public void onWorldUnload(WorldEvent.Unload event) {
if (event.world.isRemote) {
SubmapManagerSpecialMaterial.clearRenderBlocksInstance();
TextureType.clearStatics();
}
}