mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 23:22:24 +01:00
itemdef: handle the !render-to-target case
This commit is contained in:
parent
993821a924
commit
496451c164
@ -417,7 +417,13 @@ public:
|
|||||||
light_position,
|
light_position,
|
||||||
light_color,
|
light_color,
|
||||||
light_radius);
|
light_radius);
|
||||||
// Note: might have returned NULL
|
|
||||||
|
// render-to-target didn't work
|
||||||
|
if(def->inventory_texture == NULL)
|
||||||
|
{
|
||||||
|
def->inventory_texture =
|
||||||
|
tsrc->getTextureRaw(f.tname_tiles[0]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user