Compare commits

...

5 Commits

Author SHA1 Message Date
Sys Quatre 00187d7ff6 Corrige crash si objet non supporté à recycler dans scie circulaire 2019-05-05 22:43:06 +02:00
sys4-fr 6a6a22f699 Version 1.2.0
-----BEGIN PGP SIGNATURE-----
 
 iQEcBAABAgAGBQJb+X8mAAoJEDno+L4wsKScmCsIAJcLflaVreRB4Hyqef7s5jUO
 xVOm0T8Pm4L1PLuXPItofLFo/Gd13Hz0TleHZsRhLnk82zhBuU31j7Ha2Wk9tDEb
 70P25UCiiEJRAOlwA2F6OaitdOTK6Mn/sm557z7K/B3xpXqA7IgvkbvucvMmXRyV
 f5QhHzEWBQkh4lQR+KkpJXw5il8DGvkLaXnjYVfxUOOwbLjn+Eov/r2OQgixNQnW
 VI1TmJJJRuXmp+Do0qYq3nstCEl0mgMU3EZofFvxxjx2CtqcjHWU5KiQZXh1BBtx
 N41AB12Nwkk97ptrRA2ilS8nlRZ2rUeqpnVUlM578hR8mffs0V8n5isqAA80PPw=
 =XYQj
 -----END PGP SIGNATURE-----

Merge tag 'v1.2.0' into nalc

Version 1.2.0

# gpg: Signature faite le sam. 24 nov. 2018 17:41:10 CET
# gpg:                avec la clef RSA 39E8F8BE30B0A49C
# gpg: Impossible de vérifier la signature : Pas de clef publique
2018-12-31 16:46:03 +01:00
sys4-fr 88726c5913 Merge branch 'ice-stairs' into fix-node-orientation 2018-09-16 16:17:49 +02:00
sys4-fr cd0d527c8f Add ice and snowblock support with stairsplus. 2018-09-16 16:16:16 +02:00
sys4-fr 3cbc708742 Workaround to fix node orientation (minetest >= 0.4.17.1) 2018-08-24 18:55:14 +02:00
2 changed files with 8 additions and 0 deletions

View File

@ -242,6 +242,7 @@ function circular_saw.allow_metadata_inventory_put(
local incost = (incount * 8) + microstack:get_count()
local maxcost = (stackmax * 8) + 7
local cost = circular_saw:get_cost(inv, stackname)
if not cost then return 0 end -- NALC Fix crash if cost == nil
if (incost + cost) > maxcost then
return math.max((maxcost - incost) / cost, 0)
end

View File

@ -49,6 +49,8 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks:
"desert_sandstone_block",
"sandstone_block",
"coral_skeleton",
"ice",
"snowblock",
}
for _, name in pairs(default_nodes) do
@ -57,6 +59,11 @@ for _, name in pairs(default_nodes) do
local ndef = table.copy(minetest.registered_nodes[nodename])
ndef.sunlight_propagates = true
-- Workaround to fix node orientation (minetest >= 0.4.17.1)
if ndef.place_param2 == 0 then
ndef.place_param2 = nil
end
-- Stone and desert_stone drop cobble and desert_cobble respectively.
if type(ndef.drop) == "string" then
ndef.drop = ndef.drop:gsub(".+:", "")