Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Added a "pos1" pseudo block type, which uses the block type from the "primary position".
Dieser Commit ist enthalten in:
Ursprung
768adee389
Commit
1b9445b6f2
@ -404,6 +404,18 @@ public class WorldEdit {
|
|||||||
return blockInHand;
|
return blockInHand;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blockId = blockInHand.getId();
|
||||||
|
blockType = BlockType.fromID(blockId);
|
||||||
|
data = blockInHand.getData();
|
||||||
|
} else if ("pos1".equalsIgnoreCase(testID)) {
|
||||||
|
// Get the block type from the "primary position"
|
||||||
|
final LocalWorld world = player.getWorld();
|
||||||
|
final BlockVector primaryPosition = getSession(player).getRegionSelector(world).getPrimaryPosition();
|
||||||
|
final BaseBlock blockInHand = world.getBlock(primaryPosition);
|
||||||
|
if (blockInHand.getClass() != BaseBlock.class) {
|
||||||
|
return blockInHand;
|
||||||
|
}
|
||||||
|
|
||||||
blockId = blockInHand.getId();
|
blockId = blockInHand.getId();
|
||||||
blockType = BlockType.fromID(blockId);
|
blockType = BlockType.fromID(blockId);
|
||||||
data = blockInHand.getData();
|
data = blockInHand.getData();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren