solved: the recipe for grain_packet conflicts with the recipe for bonemeal:mulch

master
runs 2022-02-02 01:21:31 +01:00
parent 1056bd2d8a
commit f48925a3ac
2 changed files with 1 additions and 32 deletions

View File

@ -1,31 +0,0 @@
unused_args = false
allow_defined_top = false
max_line_length = false
globals = {
"minetest",
"mobkit",
"mokapi",
"petz",
"stairs",
"farming",
"player_api",
"hunger_ng",
"dye",
"armor",
"playerphysics",
"player_monoids",
"awards"
}
read_globals = {
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
-- Builtin
"vector", "ItemStack",
"dump", "DIR_DELIM", "VoxelArea", "Settings",
-- MTG
"default", "sfinv", "creative",
}

View File

@ -47,7 +47,7 @@ function mokapi.drop_items(self, killed_by_player)
if math.random(1, self.drops[n].chance) == 1 then
num = math.random(self.drops[n].min or 0, self.drops[n].max or 1)
item = self.drops[n].name
if killed_by_player then -- only drop rare items (drops.min=0) if killed by player
if killed_by_player then --only drop rare items (drops.min=0) if killed by player
obj = minetest.add_item(pos, ItemStack(item .. " " .. num))
elseif self.drops[n].min ~= 0 then
obj = minetest.add_item(pos, ItemStack(item .. " " .. num))