solved: the recipe for grain_packet conflicts with the recipe for bonemeal:mulch
parent
1056bd2d8a
commit
f48925a3ac
31
.luacheckrc
31
.luacheckrc
|
@ -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",
|
||||
}
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue