mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
make types bit nicer
This commit is contained in:
parent
f2103c26ec
commit
a238941595
5 changed files with 39 additions and 34 deletions
|
@ -103,7 +103,10 @@ impl WorldData for ParticleWorldState {
|
|||
if let Some(cell) = pixel_array.get_mut(shift_x + x, shift_y + y) {
|
||||
let xs = start_x + x;
|
||||
let ys = start_y + y;
|
||||
let mat = &self.material_list[run.data.material as usize];
|
||||
let mat = &self
|
||||
.material_list
|
||||
.get_static(run.data.material as usize)
|
||||
.unwrap();
|
||||
match mat.cell_type {
|
||||
CellType::None => {
|
||||
cell.0 = ptr::null_mut();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue