Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Andrey2470T
Created July 27, 2018 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andrey2470T/a630ef57a8813c0406a318c47f0ac72d to your computer and use it in GitHub Desktop.
Save Andrey2470T/a630ef57a8813c0406a318c47f0ac72d to your computer and use it in GitHub Desktop.
allow_metadata_inventory_put = function (pos, listname, index, stack, player)
local itemstring = stack:get_name()
if string.find(itemstring, "syringe") and string.find(itemstring, "medicine:") then
return -1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment