Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-10 05:20:04 +01:00
Fixed for new SpoutAPI version.
Dieser Commit ist enthalten in:
Ursprung
483edd76bd
Commit
a7c75285d9
@ -70,7 +70,7 @@ public class SpoutWorld extends LocalWorld {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean setBlockType(Vector pt, int type) {
|
public boolean setBlockType(Vector pt, int type) {
|
||||||
world.setBlockId(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ(), (short)type);
|
world.setBlockId(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ(), (short)type, WorldEditPlugin.getInstance());
|
||||||
return world.getBlockId(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ()) != type;
|
return world.getBlockId(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ()) != type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ public class SpoutWorld extends LocalWorld {
|
|||||||
@Override
|
@Override
|
||||||
public boolean setTypeIdAndData(Vector pt, int type, int data) {
|
public boolean setTypeIdAndData(Vector pt, int type, int data) {
|
||||||
int origType = getBlockType(pt), origData = getBlockData(pt);
|
int origType = getBlockType(pt), origData = getBlockData(pt);
|
||||||
world.setBlockIdAndData(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ(), (short) type, (short) data);
|
world.setBlockIdAndData(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ(), (short) type, (short) data, WorldEditPlugin.getInstance());
|
||||||
return origType != type && origData != data;
|
return origType != type && origData != data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +66,11 @@ public class WorldEditPlugin extends CommonPlugin implements Named {
|
|||||||
*/
|
*/
|
||||||
private YAMLConfiguration config;
|
private YAMLConfiguration config;
|
||||||
|
|
||||||
|
private static WorldEditPlugin instance;
|
||||||
|
{
|
||||||
|
instance = this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called on plugin enable.
|
* Called on plugin enable.
|
||||||
*/
|
*/
|
||||||
@ -351,4 +356,8 @@ public class WorldEditPlugin extends CommonPlugin implements Named {
|
|||||||
public String getName() {
|
public String getName() {
|
||||||
return getDescription().getName();
|
return getDescription().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static WorldEditPlugin getInstance() {
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren