1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-15 22:30:43 +02:00

add nil checks to on_place

This commit is contained in:
Niklp09
2023-07-10 19:15:58 +02:00
parent 206007caa5
commit b613536a49
5 changed files with 14 additions and 6 deletions

View File

@ -59,7 +59,11 @@ for i in ipairs(lilies_list) do
liquids_pointable = true,
drop = "flowers:waterlily",
on_place = function(itemstack, placer, pointed_thing)
local keys=placer:get_player_control()
if not itemstack or not placer or not pointed_thing then
return
end
local keys = placer:get_player_control()
local pt = pointed_thing
local place_pos = nil