mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-29 03:59:06 +00:00
Warn for smoothie's illegal reflective access
This commit is contained in:
@@ -49,6 +49,7 @@ public class Iris extends VolmitPlugin
|
||||
public static boolean lowMemoryMode = false;
|
||||
public static IrisCompat compat;
|
||||
public static FileWatcher configWatcher;
|
||||
public static boolean warnsmoothie = true;
|
||||
|
||||
@Permission
|
||||
public static PermissionIris perm;
|
||||
@@ -129,6 +130,13 @@ public class Iris extends VolmitPlugin
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void warnsmoothie(){
|
||||
if (warnsmoothie){
|
||||
warn("The smoothieMap 'illegal reflective access operation' is required and can be safely ignored");
|
||||
warnsmoothie = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start()
|
||||
{
|
||||
|
||||
@@ -218,6 +218,7 @@ public class IrisObject extends IrisRegistrant
|
||||
|
||||
public IrisObject(int w, int h, int d)
|
||||
{
|
||||
Iris.warnsmoothie();
|
||||
blocks = SmoothieMap.<BlockVector, BlockData>newBuilder()
|
||||
.doShrink(true)
|
||||
.optimizeFor(OptimizationObjective.LOW_GARBAGE)
|
||||
|
||||
Reference in New Issue
Block a user