geforkt von Mirrors/FastAsyncWorldEdit
Brought WE up to date with the newest hMod revision.
Dieser Commit ist enthalten in:
Ursprung
67a43fe2a5
Commit
4b8b77a6d5
@ -221,9 +221,16 @@ public class ServerInterface {
|
||||
* @param mobType
|
||||
*/
|
||||
public static void setMobSpawnerType(Vector pt, String mobType) {
|
||||
Block block = etc.getServer().getBlockAt(
|
||||
ComplexBlock cblock = etc.getServer().getComplexBlock(
|
||||
pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());
|
||||
block.setSpawnData(mobType);
|
||||
|
||||
if (!(cblock instanceof MobSpawner)) {
|
||||
return;
|
||||
}
|
||||
|
||||
MobSpawner mobSpawner = (MobSpawner)cblock;
|
||||
mobSpawner.setSpawn(mobType);
|
||||
mobSpawner.update();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren