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:
@ -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
|
||||
|
Reference in New Issue
Block a user