mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 03:16:41 +00:00
Moved the block data check to LocalWorld, adding preliminary support for custom blocks.
All unknown blocks are now assumed to carry data, and so this will also future proof WorldEdit (for the immediate future). However, be aware that full custom block support requires carrying TileEntity data (and perhaps other data) and that is not yet supported.
This commit is contained in:
@ -217,7 +217,7 @@ public class EditSession {
|
||||
|
||||
final boolean result;
|
||||
|
||||
if (BlockType.usesData(type)) {
|
||||
if (world.usesBlockData(type)) {
|
||||
if (fastMode) {
|
||||
result = world.setTypeIdAndDataFast(pt, type, block.getData() > -1 ? block.getData() : 0);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user