mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +01:00
Force FAWE adapter as WE for 1.11 broke entities
good job WorldEdit
This commit is contained in:
parent
c3bded1c6d
commit
0df745c399
@ -271,6 +271,7 @@ public class BukkitChunk_1_11 extends CharFaweChunk<Chunk, com.boydti.fawe.bukki
|
|||||||
String currentId = EntityTypes.a(key);
|
String currentId = EntityTypes.a(key);
|
||||||
Class<? extends Entity> clazz = EntityTypes.b.get(key);
|
Class<? extends Entity> clazz = EntityTypes.b.get(key);
|
||||||
entityKeys.put(currentId, clazz);
|
entityKeys.put(currentId, clazz);
|
||||||
|
entityKeys.put(key.a(), clazz);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Class<? extends Entity> clazz = entityKeys.get(id);
|
Class<? extends Entity> clazz = entityKeys.get(id);
|
||||||
|
@ -63,11 +63,9 @@ public class BukkitQueue_1_11 extends BukkitQueue_0<Chunk, ChunkSection[], Chunk
|
|||||||
fieldBits.setAccessible(true);
|
fieldBits.setAccessible(true);
|
||||||
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);
|
||||||
if (adapter == null) {
|
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: " + adapter);
|
||||||
Fawe.debug("Using adapter: " + adapter);
|
Fawe.debug("=========================================");
|
||||||
Fawe.debug("=========================================");
|
|
||||||
}
|
|
||||||
for (int i = 0; i < Character.MAX_VALUE; i++) {
|
for (int i = 0; i < Character.MAX_VALUE; i++) {
|
||||||
try {
|
try {
|
||||||
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);
|
IBD_CACHE[i] = Block.getById(i >> 4).fromLegacyData(i & 0xF);
|
||||||
|
Loading…
Reference in New Issue
Block a user