1
0
forked from MTSR/moreblocks
Commit Graph

59 Commits

Author SHA1 Message Date
Luke aka SwissalpS
54b2217aeb
Make circular saw and all cut nodes considered as non-ground content (#204)
Default to not being ground content.
The few nodes that were registered as ground content shouldn't be considered ground content.

* cut nodes aren't ground content

By default make cut nodes non ground content but allow mods to register theirs as ground content if they want to.
2024-02-27 20:24:51 +01:00
CarlosBarrazaE
dce587cf33
Merge and update translations (#186) 2021-11-14 02:14:19 +01:00
afkplayer5000
f8a7d66403
Fix circular saw item duplication bug (#173) 2021-08-29 08:23:47 +02:00
Buckaroo Banzai
e8d219f108
Optional dependency on default mod (#182) 2021-08-26 20:46:07 +02:00
Tin Švagelj
b39bb31295
Resolve aliases in cost calculation (#175)
If stairs from stairs mod were crafted before moreblocks was enabled, the old (now aliased) stairs variant is kept in inventory. If the player tried to recycle that stair variant, `inv:contains_item("output", stackname)` would return true as `contains_item` resolves alias names, but `circular_saw:get_cost` would return nil as it's expecting exact `stackname` matches which would later crash due to nil arithmetic.

This PR fixes this issue by resolving alias using `minetest.registered_aliases` table.
`circular_saw:get_cost` should work now in every scenario where `inv:contains_item("output", stackname)` returns true.
2021-02-10 17:52:55 +01:00
Hugo Locurcio
917a46014f
Update copyright statements to 2020 2020-01-01 04:09:24 +01:00
Hugo Locurcio
e09d2fab01
Fix several typos in comments 2019-04-21 16:57:42 +02:00
Hugo Locurcio
1d054ec431
Fix circular saw infotext message on initial placement
The concatenation operator was mistakenly written as `.`
instead of `..`.
2019-03-20 21:38:28 +01:00
codexp
2b047f19fd
Use translated description of material 2019-03-20 21:31:17 +01:00
codexp
e6740678f6
Remove parentheses from "owned by" translation 2019-03-20 21:31:12 +01:00
codexp
2057441dc2
Escape formspec variables 2019-03-20 21:31:00 +01:00
codexp
e2e2af94cc
Fix forgotten variable 2019-03-20 21:30:25 +01:00
codexp
c7f80ce960
Refactor Lua format in locales 2019-03-20 21:29:59 +01:00
Hugo Locurcio
76a00a5365
Update intllib support to avoid using deprecated functions 2019-03-03 20:02:40 +01:00
Hugo Locurcio
0e885283c0
Update copyright statements to 2019 2019-02-25 12:13:55 +01:00
Hugo Locurcio
26f59baba0
Update copyright year range for 2018 2018-11-24 17:36:04 +01:00
Foz
6f1ee946a0 Fix saw left-over naming bug.
The appended '_bottom' is left over from an older naming convention and relies
on an alias to avoid unknown nodes showing up in the saw's left-over bin.
2017-12-28 19:59:13 -08:00
Jat15
80d35c8215 Add listring for circular saw 2017-11-20 15:09:37 -08:00
fishyWET
1fa4669ae8 Fix "replacement when inv is full" (#85)
* fix replacement when inv is full.

* Use allow_metadata_inventory_take instead
2017-11-20 23:09:27 +01:00
Hugo Locurcio
df8c150c9a Add Sokomine to the copyright line of circular_saw.lua 2017-09-03 00:46:49 +02:00
Vanessa Ezekowitz
0569ff9683 add a few new shapes to the table saw: (#67)
* 1/16 slab, L-shaped (two sides)
* 1/16 slab, corner-shaped (three sides)
* 1/16 slab, U-shaped (three sides)
2017-02-21 22:58:40 +01:00
Hugo Locurcio
831bbb2b27 Prepare for v1.0.0 release 2017-02-19 13:35:16 +01:00
Auke Kok
085e9d56bc Remove unused gui_slots 2016-12-31 12:33:09 -08:00
Auke Kok
5500c9906c Run cleanfile on all files, fixing whitespace issues. 2016-12-31 12:33:09 -08:00
Auke Kok
2c63648f42 Prevent input stack_max from overflowing
Adds a check to see if recycle stack wouldn't overflow the input stack. If so, then
the items are just put in the recycle slot and they can be taken out again.
2016-02-13 22:20:12 -08:00
cmdskp
6878f64e7b Resolves swapping different blocks between inventories
Resolves a number of cases where switching stacks of different types of blocks with different counts would cause a corruption in the Player inventory stack count or allow normally unaccepted items into the Saw causing 'unknown' items to be generated in its output.
2015-12-26 11:35:44 +00:00
Pierre-Yves Rollo
54a7102291 Make stairplus:register_* functions work without using register_all. 2015-11-01 17:54:29 +01:00
Marcin
18d3ff6951 Added new slopes to circular saw 2015-06-27 21:10:29 +02:00
Marcin
1b45e895fc Fixed count of leftovers received from circular saw for slopes 2015-06-27 15:41:51 +02:00
Craig Davison
56a9c885ff Circular saw: Prevent microblocks from duplicating 2015-06-15 19:56:40 +01:00
kilbith
68e5b76c90 Speedup get_output_inv() 2015-06-14 20:42:23 +02:00
kilbith
26799d2263 Speedup remnant stack calculation 2015-06-06 12:17:39 +02:00
kilbith
7bd98ac02c Speedup get_output_inv 2015-06-06 11:38:26 +02:00
kilbith
6491d0be42 Add mesh models into the circular saw 2015-06-06 10:30:49 +02:00
Calinou
10d28eec32 More informative and shorter headers. 2015-01-12 17:46:22 +01:00
Calinou
b5d62de9d8 Add licensing headers to all files, fix intllib global variable warnings. 2015-01-11 22:21:33 +01:00
Calinou
cd65ed0930 Big cleanup. Fix intllib support. 2014-12-27 20:30:19 +01:00
Calinou
6501336d86 Continue the potential fix. 2014-08-20 19:21:47 +02:00
Calinou
e308ecf472 Add potential fix for circular saw crash. 2014-08-20 19:20:19 +02:00
Calinou
c733848327 Try a fix for name_parts crash. 2014-08-10 17:26:11 +02:00
Calinou
f7916005c2 Code cleanup, new Stairs+ recipes. 2014-07-21 12:24:49 +02:00
Calinou
28741bf242 Add an upper cap to circular saw max. 2014-07-20 21:58:12 +02:00
Calinou
e2f4cc369b Code cleanup. Add tar and more stone types. 2014-06-27 20:14:08 +02:00
Calinou
008ade61de Added desert cobblestone Stairs+ nodes, circular saw cosmetic changes, remove obsolete code. 2014-05-03 21:40:45 +02:00
Calinou
8337a6c192 Merge ShadowNinja's rewrite. 2014-03-09 10:38:18 +01:00
Calinou
396945ed3e Merge pull request #11 from Jat15/patch-2
circular_saw limit in inventory input.
2014-01-20 10:50:30 -08:00
Calinou
62f9f00fe8 Big update: new stair types, code looks better. 2014-01-20 19:49:40 +01:00
Calinou
2b01bd5cbc Merge pull request #10 from Jat15/patch-1
Fix circular saw bug: typo fix.
2014-01-20 10:15:17 -08:00
Jat15
a14f0145c2 Circular_saw limit in inventory input
Use for multiply block in circular saw.
2013-12-27 15:56:38 +01:00
Jat15
6c4af19353 Fix bug circular saw 2013-12-23 23:59:46 +01:00