13 Commits

Author SHA1 Message Date
Auke Kok
5a0cbbc844 Fix unit of these (os.clock returns 's'). 2019-09-15 21:07:48 -07:00
Auke Kok
6d538955fd Kurtzmusch's experiment skipping nodes without meta. 2019-09-11 21:50:44 -07:00
Auke Kok
3d090e5940 Add timing for boxes.save() 2019-09-11 21:50:44 -07:00
Auke Kok
80cbd6d34a Add license headers to all lua files.
Some of these are copies from the respective origins from mtg,
to make sure we have headers everywhere listing the proper code.

I've relicensed spectator_mode from WT*PL to LGPL-2.1. No other
licenses were changed.
2018-06-21 22:56:48 -07:00
Auke Kok
5450041080 Fix light in a much larger area. 16 nodes margin around it, and later. 2017-09-27 20:24:57 -07:00
Auke Kok
f4335f74ef Postpone light fixing.
It appears we're fixing light, which then immediately gets
overwritten with broken light from the write_to_map() VM method.

We postpone this 1+ server tick to assure that the write_to_map()
has committed entirely. This may result in more block data being
sent to the client.
2017-09-27 14:39:11 -07:00
Auke Kok
ff9d2cf098 We can possibly eliminate some spurious meta on save.
Air nodes are not meant to have meta. Only placeholder
nodes are airlike with meta, so we can nuke the meta for
air nodes.
2017-09-16 21:13:20 -07:00
Auke Kok
54a52d8f3c call core.fix_light on every box load.
Attempt to fix bad lighting after the server restarts.
2017-09-16 21:12:51 -07:00
Ekdohibs
b8c2e9941b Clean existing metadata when loading a box. 2017-04-08 19:17:25 +02:00
Ekdohibs
3072fce05f Add particles to teleports 2017-01-30 11:00:38 +01:00
Ekdohibs
9f16592f9d Add after_box_construct = func(pos) callback. 2017-01-30 10:21:21 +01:00
Ekdohibs
5bacf75ff9 boxes: save nodetimers as well 2017-01-29 11:34:19 +01:00
Ekdohibs
e134f3b1d9 Split boxes/init.lua into several files as it is getting quite big. 2017-01-27 13:52:53 +01:00