1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-17 07:40:32 +01:00

fix crash when sand is dropped on a book

This commit is contained in:
Vanessa Dannenberg 2021-02-25 02:33:33 -05:00
parent 968d706e9b
commit cc0887cfb4

View File

@ -27,7 +27,7 @@ for _, c in ipairs(bookcolors) do
local color, hue = unpack(c)
local function book_dig(pos, node, digger)
if minetest.is_protected(pos, digger:get_player_name()) then return end
if not digger or minetest.is_protected(pos, digger:get_player_name()) then return end
local meta = minetest.get_meta(pos)
local data = minetest.serialize({
title = meta:get_string("title") or "",