Commit Graph

27 Commits (master)

Author SHA1 Message Date
Oversword 93d0c8053d
Be more defensive in the recalc function (#16) 2021-08-10 20:50:26 +02:00
Oversword ed795a1dc6
Add player velocity compatiblity code (#15)
Co-authored-by: flux <25628292+fluxionary@users.noreply.github.com>
2021-07-26 21:16:00 +02:00
Oversword d1f310c5de
Fix a couple of bugs caused by mod rewrite (#14) 2021-07-16 12:49:36 +02:00
Oversword 251c2bfe10
Re-write to make more reliable (#11)
Issue: Having two light levels in the same position can cause flickering between them
Expected behaviour: ideally the highest light level should be displayed
Fix: tracking multiple items by position, calculating the correct level if an update is required

Issue: Using the fast priv + fly priv can cause lights to be left behind in your path
Expected behaviour: Light nodes should be removed no matter how far away from them you are
Fix: Use the global step to run updates on all nodes instead of the node timer

Issue: It's not easy to add in a new custom dynamic light
Expected behaviour: there should be an API with plenty of helpful methods for getting data and registering new lights
Fix: Many new helper methods added that were extracted from the original code, as well as new methods added for tracking new wielded lights and running code at the same time as the update

Co-authored-by: Oversword <bionc:oversword.co.uk>
2021-07-14 21:05:50 +02:00
SmallJoker da6277b3a9 Integrate unter water shine feature 2021-07-08 17:43:19 +02:00
sfence 1c3cf421ff
Under water shine improvements (#10)
Fixed light flicking.
Make it a little more extensability.
Make floodable items not emitting light underwater.
Add Hades Revisited support for underwater light.
2021-06-20 16:32:29 +02:00
Alexander Weber 60b31d3066 fix mt-5.4 compatibility
Closes #7
2020-12-03 20:29:56 +01:00
Alexander Weber 4376b55a2f Code maintanance 2020-08-28 17:18:38 +02:00
bell07 7d78f96c2b
Fix #6
Should fix the #6
2020-05-05 19:58:19 +02:00
bell07 56d52ffbfd
Merge pull request #5 from fluxionary/fix_drops
correctly prevent light nodes from dropping
2020-05-04 07:34:37 +02:00
flux dac74f9c26 correctly prevent light nodes from dropping 2020-05-01 19:01:01 +00:00
Alexander Weber 9efe4a90f7 Merge branch 'master' into under_water_shine 2019-01-10 07:41:07 +01:00
Alexander Weber 791ebfa3c8 use setmetatable instead of table copy
like in minetest game / default dropped item
2019-01-10 07:40:15 +01:00
Alexander Weber 84ffc34b9f add support for shining in default:water_source 2018-09-04 22:59:01 +02:00
Alexander Weber 62c92f573c try other position +-1 if current position not useable 2018-09-04 22:13:37 +02:00
bell07 c28547c90f
Merge pull request #3 from lhofhansl/master
Simple position prediction when moving.
2018-05-12 23:39:16 +02:00
Lars Hofhansl b19a5f7c75 Simple position prediction when moving. 2018-05-12 14:33:52 -07:00
bell07 d289a270bf
Merge pull request #2 from bell07/dropped_items_shining
added dropped items shining
Support is merged to minetest-mods/throwing, to be compatible I just merge this changes
2018-05-10 10:54:46 +02:00
Alexander Weber f8da6376cc added dropped items shining 2018-05-08 16:52:08 +02:00
Alexander Weber 9b1cb76a77 Added shining API 2018-01-13 15:19:06 +01:00
bell07 3cdf6fa361
Update README.md 2018-01-10 10:23:08 +01:00
bell07 a88aeacf14
Update README.md 2018-01-10 10:17:43 +01:00
bell07 7e62bd4b19
Fix typo 2018-01-10 10:15:28 +01:00
bell07 bef2f5bdce
Create README.md 2018-01-10 10:14:33 +01:00
Alexander Weber 0809085929 Merge remote-tracking branch 'origin/master' 2018-01-10 10:07:27 +01:00
bell07 59aebb56e2
Initial commit 2018-01-10 10:06:55 +01:00
Alexander Weber c855c4e7e9 initial commit 2018-01-10 10:04:36 +01:00