Commit ee9265a
committed
fix(ores): pass whitelist to set_block_absolute so STONE actually gets overwritten
The previous ore placement called set_block_absolute(ore, x, y, z, None, None)
which silently no-ops over any non-AIR block. set_block_with_properties_absolute
at mod.rs:892 routes to an else { false } branch when there is an existing block
and no filters are given. So every vein step that landed on stone was a no-op.
Passing Some(&[STONE]) as the whitelist makes the existing-block path match and
write. The earlier check_for_block_absolute pre-gate is kept because, when the
target cell is AIR, the same function's else { true } branch would otherwise
write ore into the air above the surface.1 parent d4bdb52 commit ee9265a
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
| 113 | + | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
| |||
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
127 | | - | |
| 126 | + | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
0 commit comments