3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-24 01:50:06 +01:00

Merge pull request #134 from TLUL/master

Fixed SPC 2.10_2 compatibility
Dieser Commit ist enthalten in:
Elizacat 2011-08-14 01:41:09 -07:00
Commit d7c21322aa

Datei anzeigen

@ -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.