mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
setTypeIdAndData in LocalWorld is no longer abstract - it now defaults to calling setBlockType and setBlockData. Restores compatibility with SinglePlayerCommands 2.10_2.
This commit is contained in:
parent
9d753c8692
commit
22cbc90b6d
@ -94,7 +94,11 @@ public abstract class LocalWorld {
|
||||
* @param data
|
||||
* @return
|
||||
*/
|
||||
public abstract boolean setTypeIdAndData(Vector pt, int type, int data);
|
||||
public boolean setTypeIdAndData(Vector pt, int type, int data) {
|
||||
boolean ret = setBlockType(pt, type);
|
||||
setBlockData(pt, data);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* set block type & data
|
||||
@ -103,7 +107,11 @@ public abstract class LocalWorld {
|
||||
* @param data
|
||||
* @return
|
||||
*/
|
||||
public abstract boolean setTypeIdAndDataFast(Vector pt, int type, int data);
|
||||
public boolean setTypeIdAndDataFast(Vector pt, int type, int data) {
|
||||
boolean ret = setBlockTypeFast(pt, type);
|
||||
setBlockDataFast(pt, data);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get block data.
|
||||
|
Loading…
Reference in New Issue
Block a user