mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 02:03:59 +00:00
Settings changes and fix npes
This commit is contained in:
parent
5e0b4e1be6
commit
954f0cc26f
@ -5,7 +5,7 @@ plugins {
|
||||
}
|
||||
|
||||
group 'com.volmit.iris'
|
||||
version '1.5.7'
|
||||
version '1.5.8'
|
||||
def apiVersion = '1.17'
|
||||
def name = 'Iris'
|
||||
def main = 'com.volmit.iris.Iris'
|
||||
|
@ -558,10 +558,9 @@ public class Iris extends VolmitPlugin implements Listener {
|
||||
}
|
||||
|
||||
public boolean isMCA() {
|
||||
return IrisSettings.get().getGenerator().isMcaPregenerator();
|
||||
return !IrisSettings.get().getGenerator().isDisableMCA();
|
||||
}
|
||||
|
||||
|
||||
public static void reportErrorChunk(int x, int z, Throwable e, String extra) {
|
||||
if (IrisSettings.get().getGeneral().isDebug()) {
|
||||
File f = instance.getDataFile("debug", "chunk-errors", "chunk."+ x + "." + z + ".txt");
|
||||
|
@ -108,7 +108,7 @@ public class IrisSettings {
|
||||
public static class IrisSettingsGenerator {
|
||||
|
||||
public String defaultWorldType = "overworld";
|
||||
public boolean mcaPregenerator = false;
|
||||
public boolean disableMCA = false;
|
||||
public boolean systemEffects = true;
|
||||
public boolean systemEntitySpawnOverrides = true;
|
||||
public boolean systemEntityInitialSpawns = true;
|
||||
|
@ -42,7 +42,7 @@ public class HybridPregenMethod implements PregeneratorMethod {
|
||||
}
|
||||
|
||||
private boolean supportsHeadless(World world) {
|
||||
return IrisWorlds.access(world) != null && IrisSettings.get().getGenerator().isMcaPregenerator();
|
||||
return IrisWorlds.access(world) != null && !IrisSettings.get().getGenerator().isDisableMCA();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -68,6 +68,11 @@ public class IrisObjectRotation {
|
||||
}
|
||||
|
||||
public IrisObject rotateCopy(IrisObject e) {
|
||||
if(e == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return e.rotateCopy(this);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user