1
0
mirror of https://github.com/Sokomine/replacer.git synced 2025-07-04 00:51:23 +02:00

fixed bug; added blacklist for nodes

This commit is contained in:
Sokomine
2017-12-09 20:20:43 +01:00
parent 9c80920cd8
commit a535be2382
3 changed files with 46 additions and 8 deletions

View File

@ -71,7 +71,7 @@ replacer.inspect = function( itemstack, user, pointed_thing, mode, show_receipe
text = text..'your fellow player \"'..tostring( ref:get_player_name() )..'\"';
else
local luaob = ref:get_luaentity();
if( luaob ) then
if( luaob and luaob.get_staticdata) then
text = text..'entity \"'..tostring( luaob.name )..'\"';
local sdata = luaob:get_staticdata();
if( sdata ) then