mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2026-01-03 19:05:23 +01:00
add nil checks to on_place
This commit is contained in:
@@ -47,7 +47,11 @@ for i in ipairs(algae_list) do
|
||||
liquids_pointable = true,
|
||||
drop = "flowers:seaweed",
|
||||
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