Moving fawe adapter to console
This commit is contained in:
parent
d89cb44db7
commit
f71043bea6
@ -653,7 +653,7 @@ public class FaweBukkit implements IFawe, Listener {
|
|||||||
this.version = tmp = v;
|
this.version = tmp = v;
|
||||||
if (tmp == Version.v1_12_R1) {
|
if (tmp == Version.v1_12_R1) {
|
||||||
try {
|
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"));
|
NMSRegistryDumper dumper = new NMSRegistryDumper(MainUtil.getFile(plugin.getDataFolder(), "extrablocks.json"));
|
||||||
dumper.run();
|
dumper.run();
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
@ -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 = net.minecraft.server.v1_10_R1.Chunk.class.getDeclaredMethod("getEntitySlices");
|
||||||
getEntitySlices.setAccessible(true);
|
getEntitySlices.setAccessible(true);
|
||||||
setupAdapter(new com.boydti.fawe.bukkit.v1_10.FaweAdapter_1_10());
|
setupAdapter(new com.boydti.fawe.bukkit.v1_10.FaweAdapter_1_10());
|
||||||
Fawe.debug("Using adapter: " + getAdapter());
|
System.out.println("Using adapter: " + getAdapter());
|
||||||
Fawe.debug("=========================================");
|
System.out.println("=========================================");
|
||||||
for (int i = 0; i < IBD_CACHE.length; i++) {
|
for (int i = 0; i < IBD_CACHE.length; i++) {
|
||||||
try {
|
try {
|
||||||
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);
|
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);
|
||||||
|
@ -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 = net.minecraft.server.v1_11_R1.Chunk.class.getDeclaredMethod("getEntitySlices");
|
||||||
getEntitySlices.setAccessible(true);
|
getEntitySlices.setAccessible(true);
|
||||||
setupAdapter(new com.boydti.fawe.bukkit.v1_11.FaweAdapter_1_11());
|
setupAdapter(new com.boydti.fawe.bukkit.v1_11.FaweAdapter_1_11());
|
||||||
Fawe.debug("Using adapter: " + getAdapter());
|
System.out.println("Using adapter: " + getAdapter());
|
||||||
Fawe.debug("=========================================");
|
System.out.println("=========================================");
|
||||||
for (int i = 0; i < IBD_CACHE.length; i++) {
|
for (int i = 0; i < IBD_CACHE.length; i++) {
|
||||||
try {
|
try {
|
||||||
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);
|
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);
|
||||||
|
@ -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 = net.minecraft.server.v1_12_R1.Chunk.class.getDeclaredMethod("getEntitySlices");
|
||||||
getEntitySlices.setAccessible(true);
|
getEntitySlices.setAccessible(true);
|
||||||
setupAdapter(new FaweAdapter_1_12());
|
setupAdapter(new FaweAdapter_1_12());
|
||||||
Fawe.debug("Using adapter: " + getAdapter());
|
System.out.println("Using adapter: " + getAdapter());
|
||||||
Fawe.debug("=========================================");
|
System.out.println("=========================================");
|
||||||
for (int i = 0; i < IBD_CACHE.length; i++) {
|
for (int i = 0; i < IBD_CACHE.length; i++) {
|
||||||
try {
|
try {
|
||||||
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);
|
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);
|
||||||
|
@ -124,8 +124,8 @@ public class BukkitQueue_1_9_R1 extends BukkitQueue_0<net.minecraft.server.v1_9_
|
|||||||
fieldBits.setAccessible(true);
|
fieldBits.setAccessible(true);
|
||||||
if (getAdapter() == null) {
|
if (getAdapter() == null) {
|
||||||
setupAdapter(new FaweAdapter_1_9());
|
setupAdapter(new FaweAdapter_1_9());
|
||||||
Fawe.debug("Using adapter: " + getAdapter());
|
System.out.println("Using adapter: " + getAdapter());
|
||||||
Fawe.debug("=========================================");
|
System.out.println("=========================================");
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user