geforkt von Mirrors/FastAsyncWorldEdit
Updated WorldEdit for beta.
Dieser Commit ist enthalten in:
Ursprung
c7af128320
Commit
8c2169f21c
@ -60,11 +60,29 @@ public class MinecraftServerInterface {
|
|||||||
}
|
}
|
||||||
proxy.setEditSession(editSession);
|
proxy.setEditSession(editSession);
|
||||||
|
|
||||||
bj treeGen = new he();
|
bt treeGen = new ib();
|
||||||
return treeGen.a(proxy, random,
|
return treeGen.a(proxy, random,
|
||||||
pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());
|
pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mob spawner mob type. May return an empty string.
|
||||||
|
*
|
||||||
|
* @param pt
|
||||||
|
* @param mobType
|
||||||
|
*/
|
||||||
|
public static String getMobSpawnerType(Vector pt) {
|
||||||
|
bg o = etc.getMCServer().e.l(
|
||||||
|
pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());
|
||||||
|
|
||||||
|
if (o != null && o instanceof cq) {
|
||||||
|
String type = ((cq)o).f;
|
||||||
|
return type != null ? type : "";
|
||||||
|
}
|
||||||
|
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instantiate a class without calling its constructor.
|
* Instantiate a class without calling its constructor.
|
||||||
*
|
*
|
||||||
|
@ -26,7 +26,7 @@ import com.sk89q.worldedit.blocks.BaseBlock;
|
|||||||
*
|
*
|
||||||
* @author sk89q
|
* @author sk89q
|
||||||
*/
|
*/
|
||||||
public class MinecraftSetBlockProxy extends eq {
|
public class MinecraftSetBlockProxy extends ff {
|
||||||
/**
|
/**
|
||||||
* Edit session.
|
* Edit session.
|
||||||
*/
|
*/
|
||||||
|
@ -233,15 +233,13 @@ public class ServerInterface {
|
|||||||
* @param mobType
|
* @param mobType
|
||||||
*/
|
*/
|
||||||
public static String getMobSpawnerType(Vector pt) {
|
public static String getMobSpawnerType(Vector pt) {
|
||||||
ay o = etc.getMCServer().e.k(
|
try {
|
||||||
pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());
|
return MinecraftServerInterface.getMobSpawnerType(pt);
|
||||||
|
} catch (Throwable t) {
|
||||||
if (o != null && o instanceof cf) {
|
logger.severe("Failed to get mob spawner type (do you need to update WorldEdit due to a Minecraft update?): "
|
||||||
String type = ((cf)o).f;
|
+ t.getMessage());
|
||||||
return type != null ? type : "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren