mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-25 06:34:35 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afb21dcf8c | ||
|
|
c0dd868ca6 | ||
|
|
966fad56ca |
No files matched your search
+55
-23
@@ -1,4 +1,4 @@
|
||||
//version: 1692122114
|
||||
//version: 1699290261
|
||||
/*
|
||||
DO NOT CHANGE THIS FILE!
|
||||
Also, you may replace this file at any time if there is an update available.
|
||||
@@ -89,6 +89,23 @@ def out = services.get(StyledTextOutputFactory).create('an-output')
|
||||
def projectJavaVersion = JavaLanguageVersion.of(8)
|
||||
|
||||
boolean disableSpotless = project.hasProperty("disableSpotless") ? project.disableSpotless.toBoolean() : false
|
||||
boolean disableCheckstyle = project.hasProperty("disableCheckstyle") ? project.disableCheckstyle.toBoolean() : false
|
||||
|
||||
final String CHECKSTYLE_CONFIG = """
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
||||
<module name="Checker">
|
||||
<module name="TreeWalker">
|
||||
<!-- Use CHECKSTYLE:OFF and CHECKSTYLE:ON comments to suppress checkstyle lints in a block -->
|
||||
<module name="SuppressionCommentFilter"/>
|
||||
<module name="AvoidStarImport">
|
||||
<!-- Allow static wildcard imports for cases like Opcodes and LWJGL classes, these don't get created accidentally by the IDE -->
|
||||
<property name="allowStaticMemberImports" value="true"/>
|
||||
</module>
|
||||
</module>
|
||||
</module>
|
||||
"""
|
||||
|
||||
checkPropertyExists("modName")
|
||||
checkPropertyExists("modId")
|
||||
@@ -140,6 +157,17 @@ if (!disableSpotless) {
|
||||
apply from: Blowdryer.file('spotless.gradle')
|
||||
}
|
||||
|
||||
if (!disableCheckstyle) {
|
||||
apply plugin: 'checkstyle'
|
||||
tasks.named("checkstylePatchedMc") { enabled = false }
|
||||
tasks.named("checkstyleMcLauncher") { enabled = false }
|
||||
tasks.named("checkstyleIdeVirtualMain") { enabled = false }
|
||||
tasks.named("checkstyleInjectedTags") { enabled = false }
|
||||
checkstyle {
|
||||
config = resources.text.fromString(CHECKSTYLE_CONFIG)
|
||||
}
|
||||
}
|
||||
|
||||
String javaSourceDir = "src/main/java/"
|
||||
String scalaSourceDir = "src/main/scala/"
|
||||
String kotlinSourceDir = "src/main/kotlin/"
|
||||
@@ -600,15 +628,10 @@ repositories {
|
||||
}
|
||||
maven {
|
||||
name = "ic2"
|
||||
url = "https://maven.ic2.player.to/"
|
||||
metadataSources {
|
||||
mavenPom()
|
||||
artifact()
|
||||
url = getURL("https://maven.ic2.player.to/", "https://maven2.ic2.player.to/")
|
||||
content {
|
||||
includeGroup "net.industrial-craft"
|
||||
}
|
||||
}
|
||||
maven {
|
||||
name = "ic2-mirror"
|
||||
url = "https://maven2.ic2.player.to/"
|
||||
metadataSources {
|
||||
mavenPom()
|
||||
artifact()
|
||||
@@ -623,7 +646,7 @@ repositories {
|
||||
|
||||
def mixinProviderGroup = "io.github.legacymoddingmc"
|
||||
def mixinProviderModule = "unimixins"
|
||||
def mixinProviderVersion = "0.1.7.1"
|
||||
def mixinProviderVersion = "0.1.13"
|
||||
def mixinProviderSpecNoClassifer = "${mixinProviderGroup}:${mixinProviderModule}:${mixinProviderVersion}"
|
||||
def mixinProviderSpec = "${mixinProviderSpecNoClassifer}:dev"
|
||||
ext.mixinProviderSpec = mixinProviderSpec
|
||||
@@ -770,23 +793,14 @@ ext.java17PatchDependenciesCfg = configurations.create("java17PatchDependencies"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
def lwjgl3ifyVersion = '1.4.0'
|
||||
def asmVersion = '9.4'
|
||||
def lwjgl3ifyVersion = '1.5.1'
|
||||
if (modId != 'lwjgl3ify') {
|
||||
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
|
||||
}
|
||||
if (modId != 'hodgepodge') {
|
||||
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.2.26')
|
||||
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.17')
|
||||
}
|
||||
|
||||
java17PatchDependencies('net.minecraft:launchwrapper:1.17.2') {transitive = false}
|
||||
java17PatchDependencies("org.ow2.asm:asm:${asmVersion}")
|
||||
java17PatchDependencies("org.ow2.asm:asm-commons:${asmVersion}")
|
||||
java17PatchDependencies("org.ow2.asm:asm-tree:${asmVersion}")
|
||||
java17PatchDependencies("org.ow2.asm:asm-analysis:${asmVersion}")
|
||||
java17PatchDependencies("org.ow2.asm:asm-util:${asmVersion}")
|
||||
java17PatchDependencies('org.ow2.asm:asm-deprecated:7.1')
|
||||
java17PatchDependencies("org.apache.commons:commons-lang3:3.12.0")
|
||||
java17PatchDependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}:forgePatches") {transitive = false}
|
||||
}
|
||||
|
||||
@@ -1173,9 +1187,8 @@ publishing {
|
||||
version = System.getenv("RELEASE_VERSION") ?: identifiedVersion
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
if (usesMavenPublishing.toBoolean()) {
|
||||
if (usesMavenPublishing.toBoolean() && System.getenv("MAVEN_USER") != null) {
|
||||
maven {
|
||||
url = mavenPublishUrl
|
||||
allowInsecureProtocol = mavenPublishUrl.startsWith("http://") // Mostly for the GTNH maven
|
||||
@@ -1576,6 +1589,25 @@ def getSecondaryArtifacts() {
|
||||
return secondaryArtifacts
|
||||
}
|
||||
|
||||
def getURL(String main, String fallback) {
|
||||
return pingURL(main, 10000) ? main : fallback
|
||||
}
|
||||
|
||||
// credit: https://stackoverflow.com/a/3584332
|
||||
def pingURL(String url, int timeout) {
|
||||
url = url.replaceFirst("^https", "http") // Otherwise an exception may be thrown on invalid SSL certificates.
|
||||
try {
|
||||
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection()
|
||||
connection.setConnectTimeout(timeout)
|
||||
connection.setReadTimeout(timeout)
|
||||
connection.setRequestMethod("HEAD")
|
||||
int responseCode = connection.getResponseCode()
|
||||
return 200 <= responseCode && responseCode <= 399
|
||||
} catch (IOException ignored) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
// For easier scripting of things that require variables defined earlier in the buildscript
|
||||
if (file('addon.late.gradle.kts').exists()) {
|
||||
apply from: 'addon.late.gradle.kts'
|
||||
|
||||
+3
-3
@@ -3,16 +3,16 @@
|
||||
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: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.3.4:dev") {
|
||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.4.0:dev") {
|
||||
transitive = false
|
||||
}
|
||||
|
||||
|
||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
|
||||
networkTimeout=10000
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
@@ -144,7 +144,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
# shellcheck disable=SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
@@ -152,7 +152,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
# shellcheck disable=SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
|
||||
@@ -1,7 +1,21 @@
|
||||
package team.chisel;
|
||||
|
||||
import static team.chisel.init.ChiselBlocks.*;
|
||||
import static team.chisel.utils.General.*;
|
||||
import static team.chisel.init.ChiselBlocks.andesite;
|
||||
import static team.chisel.init.ChiselBlocks.cubit;
|
||||
import static team.chisel.init.ChiselBlocks.diorite;
|
||||
import static team.chisel.init.ChiselBlocks.granite;
|
||||
import static team.chisel.init.ChiselBlocks.jackolantern;
|
||||
import static team.chisel.init.ChiselBlocks.neonite;
|
||||
import static team.chisel.init.ChiselBlocks.nucrete;
|
||||
import static team.chisel.init.ChiselBlocks.planks;
|
||||
import static team.chisel.init.ChiselBlocks.pumpkin;
|
||||
import static team.chisel.init.ChiselBlocks.stainedGlass;
|
||||
import static team.chisel.init.ChiselBlocks.stainedGlassForestry;
|
||||
import static team.chisel.init.ChiselBlocks.stainedGlassPane;
|
||||
import static team.chisel.init.ChiselBlocks.sveltstone;
|
||||
import static team.chisel.init.ChiselBlocks.torches;
|
||||
import static team.chisel.utils.General.featureColors;
|
||||
import static team.chisel.utils.General.sGNames;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -30,10 +44,52 @@ import com.google.common.collect.Lists;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.EntityRegistry;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import team.chisel.block.*;
|
||||
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;
|
||||
import team.chisel.block.BlockCarvableGlass;
|
||||
import team.chisel.block.BlockCarvableGlow;
|
||||
import team.chisel.block.BlockCarvableGlowie;
|
||||
import team.chisel.block.BlockCarvableGlowstone;
|
||||
import team.chisel.block.BlockCarvableIce;
|
||||
import team.chisel.block.BlockCarvableIceStairs;
|
||||
import team.chisel.block.BlockCarvableLayered;
|
||||
import team.chisel.block.BlockCarvablePackedIce;
|
||||
import team.chisel.block.BlockCarvablePackedIceStairs;
|
||||
import team.chisel.block.BlockCarvablePane;
|
||||
import team.chisel.block.BlockCarvablePowered;
|
||||
import team.chisel.block.BlockCarvablePumpkin;
|
||||
import team.chisel.block.BlockCarvableSand;
|
||||
import team.chisel.block.BlockCarvableSlab;
|
||||
import team.chisel.block.BlockCarvableStairs;
|
||||
import team.chisel.block.BlockCarvableTorch;
|
||||
import team.chisel.block.BlockCloud;
|
||||
import team.chisel.block.BlockConcrete;
|
||||
import team.chisel.block.BlockEldritch;
|
||||
import team.chisel.block.BlockGrimstone;
|
||||
import team.chisel.block.BlockHolystone;
|
||||
import team.chisel.block.BlockLavastone;
|
||||
import team.chisel.block.BlockLeaf;
|
||||
import team.chisel.block.BlockPresent;
|
||||
import team.chisel.block.BlockRoadLine;
|
||||
import team.chisel.block.BlockSnakestone;
|
||||
import team.chisel.block.BlockSnakestoneObsidian;
|
||||
import team.chisel.block.BlockWaterstone;
|
||||
import team.chisel.block.CarvableStairsMaker;
|
||||
import team.chisel.block.IStairsCreator;
|
||||
import team.chisel.carving.Carving;
|
||||
import team.chisel.client.render.*;
|
||||
import team.chisel.client.render.SubmapManagerAntiblock;
|
||||
import team.chisel.client.render.SubmapManagerCarpetFloor;
|
||||
import team.chisel.client.render.SubmapManagerCombinedCTM;
|
||||
import team.chisel.client.render.SubmapManagerFakeController;
|
||||
import team.chisel.client.render.SubmapManagerLeaves;
|
||||
import team.chisel.client.render.SubmapManagerSlab;
|
||||
import team.chisel.client.render.SubmapManagerSpecialMaterial;
|
||||
import team.chisel.client.render.SubmapManagerVoidstone;
|
||||
import team.chisel.compat.fmp.ItemBlockChiselTorchPart;
|
||||
import team.chisel.config.Configurations;
|
||||
import team.chisel.entity.EntityBallOMoss;
|
||||
@@ -2973,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));
|
||||
}
|
||||
|
||||
@@ -3525,7 +3581,7 @@ public enum Features {
|
||||
'*',
|
||||
new ItemStack(Blocks.stone, 1),
|
||||
'X',
|
||||
new ItemStack(ChiselBlocks.andesite, 1));
|
||||
new ItemStack(andesite, 1));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package team.chisel.carving;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package team.chisel.client.gui.widgets;
|
||||
|
||||
import static team.chisel.client.gui.GuiChisel.*;
|
||||
import static team.chisel.client.gui.GuiChisel.TEXTURE_HEIGHT;
|
||||
import static team.chisel.client.gui.GuiChisel.TEXTURE_RESOURCE_LOCATION;
|
||||
import static team.chisel.client.gui.GuiChisel.TEXTURE_WIDTH;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
package team.chisel.client.render;
|
||||
|
||||
import static org.lwjgl.opengl.GL11.*;
|
||||
import static org.lwjgl.opengl.GL11.GL_BLEND;
|
||||
import static org.lwjgl.opengl.GL11.GL_ONE_MINUS_SRC_ALPHA;
|
||||
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;
|
||||
import static org.lwjgl.opengl.GL11.glBlendFunc;
|
||||
import static org.lwjgl.opengl.GL11.glDisable;
|
||||
import static org.lwjgl.opengl.GL11.glEnable;
|
||||
import static org.lwjgl.opengl.GL11.glPopMatrix;
|
||||
import static org.lwjgl.opengl.GL11.glPushMatrix;
|
||||
import static org.lwjgl.opengl.GL11.glTranslatef;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
package team.chisel.client.render;
|
||||
|
||||
import static team.chisel.ctmlib.Dir.*;
|
||||
import static team.chisel.ctmlib.Dir.BOTTOM;
|
||||
import static team.chisel.ctmlib.Dir.BOTTOM_LEFT;
|
||||
import static team.chisel.ctmlib.Dir.BOTTOM_RIGHT;
|
||||
import static team.chisel.ctmlib.Dir.LEFT;
|
||||
import static team.chisel.ctmlib.Dir.RIGHT;
|
||||
import static team.chisel.ctmlib.Dir.TOP;
|
||||
import static team.chisel.ctmlib.Dir.TOP_LEFT;
|
||||
import static team.chisel.ctmlib.Dir.TOP_RIGHT;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
|
||||
@@ -84,4 +84,9 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
|
||||
renderBlocksFullbright.submapSmall = submapSmall;
|
||||
return renderBlocksFullbright;
|
||||
}
|
||||
|
||||
public static void clearRenderBlocksInstance() {
|
||||
renderBlocksFullbright = null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +1,20 @@
|
||||
package team.chisel.client.render.tile;
|
||||
|
||||
import static org.lwjgl.opengl.GL11.*;
|
||||
import static org.lwjgl.opengl.GL11.GL_ALL_ATTRIB_BITS;
|
||||
import static org.lwjgl.opengl.GL11.GL_BLEND;
|
||||
import static org.lwjgl.opengl.GL11.GL_ONE_MINUS_CONSTANT_ALPHA;
|
||||
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;
|
||||
import static org.lwjgl.opengl.GL11.glBlendFunc;
|
||||
import static org.lwjgl.opengl.GL11.glDepthMask;
|
||||
import static org.lwjgl.opengl.GL11.glEnable;
|
||||
import static org.lwjgl.opengl.GL11.glPopAttrib;
|
||||
import static org.lwjgl.opengl.GL11.glPopMatrix;
|
||||
import static org.lwjgl.opengl.GL11.glPushAttrib;
|
||||
import static org.lwjgl.opengl.GL11.glPushMatrix;
|
||||
import static org.lwjgl.opengl.GL11.glRotatef;
|
||||
import static org.lwjgl.opengl.GL11.glScalef;
|
||||
import static org.lwjgl.opengl.GL11.glTranslated;
|
||||
import static org.lwjgl.opengl.GL11.glTranslatef;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
|
||||
@@ -4,7 +4,34 @@ import net.minecraft.block.Block;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
|
||||
import team.chisel.Chisel;
|
||||
import team.chisel.block.*;
|
||||
import team.chisel.block.BlockCarvable;
|
||||
import team.chisel.block.BlockCarvableBeacon;
|
||||
import team.chisel.block.BlockCarvableCarpet;
|
||||
import team.chisel.block.BlockCarvableGlass;
|
||||
import team.chisel.block.BlockCarvableGlowstone;
|
||||
import team.chisel.block.BlockCarvableIce;
|
||||
import team.chisel.block.BlockCarvableIceStairs;
|
||||
import team.chisel.block.BlockCarvableLayered;
|
||||
import team.chisel.block.BlockCarvablePackedIce;
|
||||
import team.chisel.block.BlockCarvablePackedIceStairs;
|
||||
import team.chisel.block.BlockCarvablePane;
|
||||
import team.chisel.block.BlockCarvablePowered;
|
||||
import team.chisel.block.BlockCarvablePumpkin;
|
||||
import team.chisel.block.BlockCarvableSand;
|
||||
import team.chisel.block.BlockCarvableSlab;
|
||||
import team.chisel.block.BlockCarvableStairs;
|
||||
import team.chisel.block.BlockCarvableTorch;
|
||||
import team.chisel.block.BlockCarvableWall;
|
||||
import team.chisel.block.BlockCloud;
|
||||
import team.chisel.block.BlockConcrete;
|
||||
import team.chisel.block.BlockGrimstone;
|
||||
import team.chisel.block.BlockHolystone;
|
||||
import team.chisel.block.BlockLavastone;
|
||||
import team.chisel.block.BlockPresent;
|
||||
import team.chisel.block.BlockRoadLine;
|
||||
import team.chisel.block.BlockSnakestone;
|
||||
import team.chisel.block.BlockSnakestoneObsidian;
|
||||
import team.chisel.block.BlockWaterstone;
|
||||
|
||||
@ObjectHolder(Chisel.MOD_ID)
|
||||
public final class ChiselBlocks {
|
||||
|
||||
@@ -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