Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Commands now also use hMod to resolve block names into block IDs.
Dieser Commit ist enthalten in:
Ursprung
01340152e3
Commit
e2731bf834
@ -224,6 +224,12 @@ public class WorldEditListener extends PluginListener {
|
|||||||
blockType = BlockType.fromID(Integer.parseInt(testID));
|
blockType = BlockType.fromID(Integer.parseInt(testID));
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
blockType = BlockType.lookup(testID);
|
blockType = BlockType.lookup(testID);
|
||||||
|
if (blockType == null) {
|
||||||
|
int t = etc.getDataSource().getItem(testID);
|
||||||
|
if (t > 0 && t < 256) {
|
||||||
|
blockType = BlockType.fromID(t);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (blockType == null) {
|
if (blockType == null) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren