mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Warn for smoothie's illegal reflective access
This commit is contained in:
parent
41d1714d28
commit
343ae99b54
@ -49,6 +49,7 @@ public class Iris extends VolmitPlugin
|
|||||||
public static boolean lowMemoryMode = false;
|
public static boolean lowMemoryMode = false;
|
||||||
public static IrisCompat compat;
|
public static IrisCompat compat;
|
||||||
public static FileWatcher configWatcher;
|
public static FileWatcher configWatcher;
|
||||||
|
public static boolean warnsmoothie = true;
|
||||||
|
|
||||||
@Permission
|
@Permission
|
||||||
public static PermissionIris perm;
|
public static PermissionIris perm;
|
||||||
@ -129,6 +130,13 @@ public class Iris extends VolmitPlugin
|
|||||||
return false;
|
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
|
@Override
|
||||||
public void start()
|
public void start()
|
||||||
{
|
{
|
||||||
|
@ -218,6 +218,7 @@ public class IrisObject extends IrisRegistrant
|
|||||||
|
|
||||||
public IrisObject(int w, int h, int d)
|
public IrisObject(int w, int h, int d)
|
||||||
{
|
{
|
||||||
|
Iris.warnsmoothie();
|
||||||
blocks = SmoothieMap.<BlockVector, BlockData>newBuilder()
|
blocks = SmoothieMap.<BlockVector, BlockData>newBuilder()
|
||||||
.doShrink(true)
|
.doShrink(true)
|
||||||
.optimizeFor(OptimizationObjective.LOW_GARBAGE)
|
.optimizeFor(OptimizationObjective.LOW_GARBAGE)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package net.querz.mca;
|
package net.querz.mca;
|
||||||
|
|
||||||
|
import com.volmit.iris.Iris;
|
||||||
import io.timeandspace.smoothie.OptimizationObjective;
|
import io.timeandspace.smoothie.OptimizationObjective;
|
||||||
import io.timeandspace.smoothie.SmoothieMap;
|
import io.timeandspace.smoothie.SmoothieMap;
|
||||||
import net.querz.nbt.tag.ByteArrayTag;
|
import net.querz.nbt.tag.ByteArrayTag;
|
||||||
@ -27,6 +28,7 @@ public class Section {
|
|||||||
|
|
||||||
public Section(CompoundTag sectionRoot, int dataVersion) {
|
public Section(CompoundTag sectionRoot, int dataVersion) {
|
||||||
this(sectionRoot, dataVersion, ALL_DATA);
|
this(sectionRoot, dataVersion, ALL_DATA);
|
||||||
|
Iris.warnsmoothie();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Section(CompoundTag sectionRoot, int dataVersion, long loadFlags) {
|
public Section(CompoundTag sectionRoot, int dataVersion, long loadFlags) {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package net.querz.nbt.tag;
|
package net.querz.nbt.tag;
|
||||||
|
|
||||||
|
import com.volmit.iris.Iris;
|
||||||
import io.timeandspace.smoothie.OptimizationObjective;
|
import io.timeandspace.smoothie.OptimizationObjective;
|
||||||
import io.timeandspace.smoothie.SmoothieMap;
|
import io.timeandspace.smoothie.SmoothieMap;
|
||||||
import net.querz.io.MaxDepthIO;
|
import net.querz.io.MaxDepthIO;
|
||||||
@ -13,6 +14,7 @@ public class CompoundTag extends Tag<Map<String, Tag<?>>> implements Iterable<Ma
|
|||||||
|
|
||||||
public CompoundTag() {
|
public CompoundTag() {
|
||||||
super(createEmptyValue());
|
super(createEmptyValue());
|
||||||
|
Iris.warnsmoothie();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user