Commit Graph

35 Commits

Author SHA1 Message Date
OgelGames
1d58becb47
Fix crash when removing upgrades (#65)
Fixes #59.
2021-07-31 12:07:28 +02:00
Gabriel Pérez-Cerezo
b424bc3499 Fix #57 by using core.hash_node_position for reliable indexing
The previously used minetest.serialize function may provide different
results for the same table in certain circumstances, thus it is not
suitable for generating strings to index tables with.
2021-03-27 18:37:34 +01:00
白狐
c490b1fc12
visual: Fix itemStackMax not initialized on insert (#53)
Co-authored-by: jessicara <chi@chi.hakurei.shrine>
2020-09-23 16:10:39 +02:00
gpcf
4e2e3a02b4
Fix maple drawers (#51)
Prevent the visible entity from being deleted on the maple drawers.
2020-09-05 23:54:15 +02:00
Linus Jahn
62b5fa51ae
Large drawer controller refactoring 2020-06-09 20:06:16 +02:00
Linus Jahn
439eb81ccd
Add digiline support 2020-06-04 23:18:36 +02:00
ShihanAlma
c13238541a
Increase object search radius to avoid recreation of visuals (#44)
Fixes #43.
2020-05-16 14:54:08 +02:00
BuckarooBanzay
dccb164133 fix common luacheck errors 2020-02-17 12:55:07 +01:00
Serhiy Zahoriya
4e99f7db71 Do not omit last inventory slot 2020-01-15 18:28:01 +01:00
Linus Jahn
e36c8721b1 Insert all from inv on rightclick with bare hand 2019-06-20 19:32:19 +02:00
Linus Jahn
885f8daf7b
Rewrite drawer controller scanning
This fixes the issue that some drawers have not been found by the
controller.
2019-05-18 23:02:00 +02:00
isaiah658
8fd4be6567 Fix nil inv bug
This should in theory fix the bug caused by other mobs or nodes punching a drawer.
2019-05-05 15:07:28 +02:00
Alex
d972c830fc Increase entity check radius by 0.03 and add automatic drawer check (#29) 2019-04-21 10:37:27 +01:00
Alex
df4e5f7c0c Remove visual if no drawer (#28) 2019-03-27 16:27:55 +00:00
GreenDimond
f5cd37cd63 Play sounds locally 2019-03-27 16:27:02 +00:00
isaiah658
8cfd1185e3 Fix issue where storage drawer saves item name for items with max stack of 1 (#17)
Fix issue where storage drawer saves item name for items with max stack of 1 causing you to not be able to put in other items until breaking the drawer or reloading the game.
2018-06-04 14:03:07 +02:00
gpcf
f6a89e19bf Add support for protections (#10) 2017-10-10 20:17:43 +02:00
LNJ
eb8d2dfd38 Set formspec on every load to support old drawers
Before this you had to dig and rebuild your drawers to
get the drawer formspecs and the ability to add upgrades.
2017-06-03 17:40:29 +02:00
LNJ
f3dafb5b6a Add Drawer Upgrades
Yey, they're finally there! :)
This will add steel, gold, obsidian and diamond upgrades for MTG
and iron, gold, obsidian, diamond and emerald upgrades for MCL2.

You can add them to a drawer by rightclicking it and adding them to
the new drawer's upgrade inventory.
2017-06-03 17:06:12 +02:00
LNJ
1f0fdf832b Play interact sound on adding/removing items from drawer
But I think the sounds are currently a bit too long.
2017-06-03 11:59:52 +02:00
LNJ
f83177346b
Fix stack_max=1 items are being stored 2017-04-23 18:15:27 +02:00
LNJ
899caf5b84
Fix "Could not load 'drawers_empty.png'" 2017-04-11 13:31:43 +02:00
LNJ
cde5c46e44
Add i18n support using intllib 2017-04-11 13:02:31 +02:00
LNJ
cb616b0df9
Use blank.png instead of own drawers_empty.png 2017-04-10 17:42:51 +02:00
FaceDeer
8009743d8d
Fix "uninitialized global variable" warnings 2017-04-10 13:30:10 +02:00
LNJ
dd97f22586
Add 1x2 drawers, Add crafting recipes for 1x2 and 2x2 2017-04-05 14:53:17 +02:00
LNJ
ad3bbe8664
Adjust pipeworks support (on insert object) for 2x2 drawers 2017-04-05 14:53:16 +02:00
LNJ
03e692d72a
Fix drawer initialization bug; used wrong meta fields for 1x1 Drawers 2017-04-05 14:53:16 +02:00
LNJ
768edb4d09
Adjust restore visual lbm, Add new drawers.remove_visuals 2017-04-05 14:53:16 +02:00
LNJ
d3d29fb497
Add basic 2x2 Drawers
They're still missing some functionality as pipeworks and drops after dug.
This will be done in the next commit(s).
2017-04-05 14:53:16 +02:00
LNJ
cb4af29165
Visual: Fix not resetting self.name 2017-04-01 22:41:35 +02:00
LNJ
1862ddbef3
Fix bug: not removing items from stack if drawer is nearly full 2017-04-01 20:22:38 +02:00
LNJ
42206a1eca
Clean up visual.lua 2017-04-01 20:04:27 +02:00
LNJ
eaec8f7478
Add support for pipeworks 2017-04-01 19:13:09 +02:00
LNJ
65e1ef85f3 Split up source code into multiple files 2017-04-01 16:28:03 +02:00