Some debug code cleanup, change the format for the mod buffer key.
This commit is contained in:
parent
8e66d3c380
commit
a75408fb22
3 changed files with 74 additions and 19 deletions
|
@ -90,7 +90,7 @@ end
|
|||
-- pos_x and pos_y are global coordinates.
|
||||
function get_tile(pos_x, pos_y)
|
||||
-- lookup changes in the change buffer
|
||||
local modded_sprite = mod_buffer[tostr(pos_x) .. "+" .. tostr(pos_y)]
|
||||
local modded_sprite = mod_buffer[get_mod_key(pos_x, pos_y)]
|
||||
if (modded_sprite) return modded_sprite
|
||||
|
||||
local biome_name = get_biome_name(pos_x, pos_y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue