Commit c831bfe
authored
Make non-legacy blocks' type/data values -1, to allow overriding non-legacy blocks with air in //generate (#2901)
* In //g, allow overriding non-legacy blocks with air
Previously, it was impossible to override a non-legacy block (i.e. one that was introduced after the switch to string IDs) with air.
This was due to the fact that non-legacy blocks and air had the same type id (0).
This change gives them separate type ids, making it possible to override non-legacy blocks with air.
* Make query functions return type/data values of -1 for non-legacy blocks
This matches the new behaviour of the type/data variables in //generate1 parent aa778af commit c831bfe
File tree
2 files changed
+3
-3
lines changed- worldedit-core/src/main/java/com/sk89q/worldedit
- regions/shape
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2481 | 2481 | | |
2482 | 2482 | | |
2483 | 2483 | | |
2484 | | - | |
2485 | | - | |
| 2484 | + | |
| 2485 | + | |
2486 | 2486 | | |
2487 | 2487 | | |
2488 | 2488 | | |
| |||
worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/WorldEditExpressionEnvironment.java
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments