Aaron Suen
39dea8a2ae
MAJOR: Code quality audit using luacheck.
...
- Removed lots of unused variables, a few shadowed identifiers.
- Removed a few sections of dead code.
2019-08-31 09:26:53 -04:00
Aaron Suen
fe2c153f9e
Clean up all lua code style.
...
Formatting rules based on Paul Kulchenko's perl-based formatter...
http://notebook.kulchenko.com/programming/lua-beautifier-in-55-lines-of-perl
...using a single tab for indent.
Mostly pure whitespace changes.
2019-08-27 19:14:51 -04:00
Aaron Suen
50c4d2d094
Fix bad log formatting.
2019-04-07 18:44:35 -04:00
Aaron Suen
a674184df0
Fix deprecated getpos -> get_pos.
2019-04-06 20:34:13 -04:00
Aaron Suen
d8acafe9cc
Switch from line_of_sight to raycast.
2019-04-06 20:31:12 -04:00
Aaron Suen
c43eaa10ec
Fix bug that broke falling node hazards.
2019-04-06 20:20:04 -04:00
Aaron Suen
47b4ae9bc6
Promote inventory pickup changes to a first-class feature mod.
...
Use interception where possible to modify destintion for items
directly instead of relying on post-hoc inventory rearrangement.
This should resolve the glitches where items appear in the wrong
place in inventory for a flash before being moved.
2019-03-27 22:10:45 -04:00
Aaron Suen
393210db69
Start proper spectator support.
...
Make sure that non-built-in content respects the interact priv
and prevents spectator players from doing nasty stuff.
2019-02-24 21:54:33 -05:00
Aaron Suen
35d814fb43
Fix suspected infinite loop in nodefall.
2019-02-09 23:35:16 -05:00
Aaron Suen
d67f736ac5
Merge node_is into match.
2019-02-03 12:44:33 -05:00
Aaron Suen
8b8c20ec03
Add falling node hazards.
...
- Nodes that are falling do damage to those near to them from
crushing and/or friction.
- Player activity can cause falling nodes left in precarious
positions by mapgen to fall randomly.
2019-01-26 13:58:35 -05:00