Quentin Bazin
d5f5082bb0
Added -Wconversion and fixed warnings.
...
This mostly forces the casts to be explicit.
2021-06-09 04:36:26 +02:00
Quentin Bazin
4bef97c3cf
[ChunkMeshBuilder] Changed method, fixed lighting bugs.
2021-06-05 17:23:13 +02:00
Quentin Bazin
b41739146e
Fixed server crash when two players tried to connect with same name.
2021-05-23 02:43:18 +02:00
Quentin Bazin
03a932c2c4
[ServerWorld] Added a timeout to chunk request queue loop.
...
Also added a 10 sec timeout on individual chunk requests.
2021-05-22 16:14:47 +02:00
Quentin Bazin
fa194fd9e2
Fixed dimension change.
2021-05-22 16:14:47 +02:00
Quentin Bazin
d6d5717a43
[ServerWorld] Chunk send requests seems to be working.
2021-05-22 16:14:47 +02:00
Quentin Bazin
199be908ae
[ServerWorld] Tried to improve chunk sending.
2021-05-22 16:14:47 +02:00
Quentin Bazin
0144b928b3
[ServerChunk] Only update light with all neighbours.
...
Also wait for m_readyToSend to be true.
2021-05-22 16:14:47 +02:00
Quentin Bazin
b6cf7bd4ad
ChunkLightmap::updateLights() no longer returns a boolean.
...
Updating lights will already enable hasChanged flag of the correct chunks if needed.
2021-05-22 16:14:47 +02:00
Quentin Bazin
eaae61f01b
Attempting to remove the big loops in ClientWorld and ServerWorld.
2021-05-22 16:14:47 +02:00
Quentin Bazin
bc5e9bc2c7
Improved server-side player chunk management.
...
- [ServerCommandHandler] Now handling PlayerChunkPosUpdate.
- [ServerChunk] sendChunkData moved from ServerWorld.
- [ServerWorld] Now using PlayerChunkPosUpdate instead of the old loop.
2021-05-22 16:14:47 +02:00
Quentin Bazin
6f97f53416
[ServerWorld] Fixed holes in the world.
2021-05-22 16:14:47 +02:00
Quentin Bazin
dd9b56f66d
[ServerWorld] Now sending ChunkUnload when needed.
2021-05-22 16:14:47 +02:00
Quentin Bazin
ee03d64254
[PlayerList] Now clearing player loaded chunks when disconnecting.
2021-05-22 16:14:47 +02:00
Quentin Bazin
22ef44e12c
Moved ChunkUnload sending from client to server.
2021-05-22 16:14:47 +02:00
Quentin Bazin
b687c6850c
Best working version.
2021-05-22 16:14:47 +02:00
Quentin Bazin
be4ff6c9da
Various fixes.
2021-05-22 16:14:47 +02:00
Quentin Bazin
7921f2281a
Fixed incomplete trees.
2021-05-22 16:14:47 +02:00
Quentin Bazin
b4f210de3a
Seems to be working, but some trees are incomplete.
2021-05-22 16:14:47 +02:00
Quentin Bazin
b3b00038eb
Closest thing to a working version. Still have holes when flying a few chunks away.
2021-05-22 16:14:47 +02:00
Quentin Bazin
4fe4b60aea
[ServerWorld] Chunks are now sent correctly.
2021-05-22 16:14:47 +02:00
Quentin Bazin
8bd9e860dc
[ServerWorld] Fixed render distance.
2021-05-22 16:14:47 +02:00
Quentin Bazin
4f94894702
[ServerWorld] Fixed infinite loop.
2021-05-22 16:14:47 +02:00
Quentin Bazin
ecdf504bef
2nd attempt.
2021-05-22 16:14:47 +02:00
Quentin Bazin
707e2b38c4
[ClientPlayer] Now allows moving in unloaded chunks with 'no clip'. [LuaCore] Useless include removed.
2020-12-29 04:07:31 +01:00
Quentin Bazin
fc29b17188
[ServerCommandHandler] Small fix.
2020-07-31 19:27:13 +02:00
Quentin Bazin
36bcbf2aee
[ServerCommandHandler] Spawn area is 16x16 chunks instead of a single chunk.
2020-07-31 17:24:02 +02:00
Quentin Bazin
9fb3064328
Worldgen seed can now be either specified during world creation or generated randomly.
2020-07-30 21:54:50 +02:00
Quentin Bazin
03d1a006b4
Worldgen now uses a seed. Fixed #116 .
2020-07-30 21:13:19 +02:00
LordDeatHunter
9534c9d00a
Added new cavegen
2020-07-30 20:32:44 +02:00
Quentin Bazin
d0bd710f90
[LuaEntityLoader|LuaMod|Registry] Error messages fixed.
2020-07-30 17:38:52 +02:00
Quentin Bazin
4eb3b6fe5f
[TerrainGenerator|ServerCommandHandler] Small fix.
2020-07-30 00:59:41 +02:00
Quentin Bazin
6065c98481
[Heightmap] Small fixes. [ServerCommandHandler] Now spawning player safely. Fixed #117 .
2020-07-30 00:46:58 +02:00
Quentin Bazin
98cf9df93e
[Heightmap] Added and used in TerrainGenerator. Fixed #135 .
...
[README.md] Fixed typo.
[EngineConfig] Increased pre-release version suffix.
[mods/default] Fixed furnace texture.
2020-07-29 18:01:48 +02:00
Quentin Bazin
7d1ee578d9
[Inventory] Hotbar priority fixed.
2020-07-28 22:40:49 +02:00
Quentin Bazin
a83e4d20bf
Now saving program output to log files.
2020-07-28 20:55:49 +02:00
Quentin Bazin
ef5ac1d818
[LuaGUI] Text input definition added.
...
[creative_inventory] Now has a search bar!
2020-07-28 19:10:02 +02:00
Pedro Gimeno
89274f906a
Improve /time command to allow time in h:m and omitting set
...
`/time set N` and `/time add N` work like before. The following extensions were added:
- `/time N`, `/time str`
- same as `/time set N` and `/time set str` respectively
- `/time h:m`, `/time set h:m`
- allows setting a specific time in hour:minutes format
- `/time add h:m`
- adds a specific number of hours and minutes to the time
2020-07-27 20:57:09 +02:00
Quentin Bazin
f99729d827
Block placement constraints implemented. Closed #137 .
2020-07-27 18:12:30 +02:00
Quentin Bazin
54ffc2c33d
[Block] 'custom_param_bits' attribute added. Fixed #139 .
2020-07-25 01:42:05 +02:00
Quentin Bazin
78f5204d33
[LuaBlockLoader] Fixed blockparam bit allocation for block states.
2020-07-24 23:02:30 +02:00
Quentin Bazin
e85c5f3458
Small fixes.
2020-07-24 19:59:35 +02:00
Pedro Gimeno
2b34e90216
Add constants for sun, moon and stars distance based on far clip
2020-07-23 19:31:28 +02:00
Quentin Bazin
55d2bdab72
[ChatCommandHandler] '/time add <value>' now allows negative values.
2020-07-20 21:30:00 +02:00
Quentin Bazin
64ddacd08f
[mods/default] 'Torch' added.
...
[BlockState] 'isCollidable' attribute added.
[TextButton] Now rounding position.
2020-07-20 15:31:43 +02:00
Quentin Bazin
4c41ab080a
[LuaMod|Inventory] Fixed a small bug preventing items from being gathered.
2020-07-20 09:48:26 +02:00
Quentin Bazin
98d84e91d5
[LuaMod] 'giveItemStack' now checks the existing stacks in hotbar.
2020-07-18 04:11:34 +02:00
Quentin Bazin
fae51bceb5
[EngineConfig] Added BLOCK_AIR for air string ID.
2020-07-18 01:53:22 +02:00
Quentin Bazin
a4dfd7a7aa
Item stack limit added (server global + per block/item definition).
2020-07-18 01:35:59 +02:00
Quentin Bazin
103127ee96
[LuaMod] 'giveItemStack' now tries to use inventory before hotbar.
2020-07-17 23:45:51 +02:00