Moving fawe adapter to console

This commit is contained in:
NotMyFault 2019-06-13 01:52:41 +02:00
parent d89cb44db7
commit f71043bea6
5 changed files with 9 additions and 9 deletions

View File

@ -653,7 +653,7 @@ public class FaweBukkit implements IFawe, Listener {
this.version = tmp = v;
if (tmp == Version.v1_12_R1) {
try {
Fawe.debug("Running 1.12 registry dumper!");
System.out.println("Running 1.12 registry dumper!");
NMSRegistryDumper dumper = new NMSRegistryDumper(MainUtil.getFile(plugin.getDataFolder(), "extrablocks.json"));
dumper.run();
} catch (Throwable e) {

View File

@ -140,8 +140,8 @@ public class BukkitQueue_1_10 extends BukkitQueue_0<net.minecraft.server.v1_10_R
getEntitySlices = net.minecraft.server.v1_10_R1.Chunk.class.getDeclaredMethod("getEntitySlices");
getEntitySlices.setAccessible(true);
setupAdapter(new com.boydti.fawe.bukkit.v1_10.FaweAdapter_1_10());
Fawe.debug("Using adapter: " + getAdapter());
Fawe.debug("=========================================");
System.out.println("Using adapter: " + getAdapter());
System.out.println("=========================================");
for (int i = 0; i < IBD_CACHE.length; i++) {
try {
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);

View File

@ -138,8 +138,8 @@ public class BukkitQueue_1_11 extends BukkitQueue_0<net.minecraft.server.v1_11_R
getEntitySlices = net.minecraft.server.v1_11_R1.Chunk.class.getDeclaredMethod("getEntitySlices");
getEntitySlices.setAccessible(true);
setupAdapter(new com.boydti.fawe.bukkit.v1_11.FaweAdapter_1_11());
Fawe.debug("Using adapter: " + getAdapter());
Fawe.debug("=========================================");
System.out.println("Using adapter: " + getAdapter());
System.out.println("=========================================");
for (int i = 0; i < IBD_CACHE.length; i++) {
try {
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);

View File

@ -126,8 +126,8 @@ public class BukkitQueue_1_12 extends BukkitQueue_0<net.minecraft.server.v1_12_R
getEntitySlices = net.minecraft.server.v1_12_R1.Chunk.class.getDeclaredMethod("getEntitySlices");
getEntitySlices.setAccessible(true);
setupAdapter(new FaweAdapter_1_12());
Fawe.debug("Using adapter: " + getAdapter());
Fawe.debug("=========================================");
System.out.println("Using adapter: " + getAdapter());
System.out.println("=========================================");
for (int i = 0; i < IBD_CACHE.length; i++) {
try {
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);

View File

@ -124,8 +124,8 @@ public class BukkitQueue_1_9_R1 extends BukkitQueue_0<net.minecraft.server.v1_9_
fieldBits.setAccessible(true);
if (getAdapter() == null) {
setupAdapter(new FaweAdapter_1_9());
Fawe.debug("Using adapter: " + getAdapter());
Fawe.debug("=========================================");
System.out.println("Using adapter: " + getAdapter());
System.out.println("=========================================");
}
} catch (Throwable e) {
e.printStackTrace();