mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 16:27:45 +00:00
Make CTM extendable and make ctm field of RenderBlocksCTM nonstatic
This commit is contained in:
1 parent
9f0c9d0b6c
commit
804edfbf95
2 files changed
+5
-5
No files matched your search
@@ -68,9 +68,9 @@ import static com.cricketcraft.chisel.api.rendering.Dir.*;
|
||||
public class CTM {
|
||||
|
||||
/** Some hardcoded offset values for the different corner indeces */
|
||||
private static int[] submapOffsets = { 4, 5, 1, 0 };
|
||||
private static TIntObjectMap<Dir[]> submapMap = new TIntObjectHashMap<Dir[]>();
|
||||
private static EnumMap<Dir, Boolean> connectionMap = Maps.newEnumMap(Dir.class);
|
||||
protected static int[] submapOffsets = { 4, 5, 1, 0 };
|
||||
protected static TIntObjectMap<Dir[]> submapMap = new TIntObjectHashMap<Dir[]>();
|
||||
protected static EnumMap<Dir, Boolean> connectionMap = Maps.newEnumMap(Dir.class);
|
||||
/** For use via the Chisel 2 config only, altering this could cause unintended behavior */
|
||||
public static boolean disableObscuredFaceCheckConfig = false;
|
||||
|
||||
@@ -87,7 +87,7 @@ public class CTM {
|
||||
submapMap.put(3, new Dir[] { TOP, LEFT, TOP_LEFT });
|
||||
}
|
||||
|
||||
private CTM() {
|
||||
protected CTM() {
|
||||
}
|
||||
|
||||
public static CTM getInstance() {
|
||||
|
||||
@@ -148,7 +148,7 @@ public class RenderBlocksCTM extends RenderBlocks {
|
||||
}
|
||||
}
|
||||
|
||||
protected static CTM ctm = CTM.getInstance();
|
||||
public CTM ctm = CTM.getInstance();
|
||||
|
||||
// globals added to save the JVM some trouble. No need to constantly create
|
||||
// and destroy ints if we don't have to
|
||||
|
||||
Reference in new issue
Block a user