Commit Graph

49 Commits

Author SHA1 Message Date
TheMode e11d15af0d Fix event node child/map leak
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 22:32:22 +02:00
TheMode 0b0dc83ffe
Make separate module for testing framework (#1428) 2022-10-10 20:44:50 +02:00
Xavier Niochaut f62d4e47fc
Heavily reduce memory consumption of AnvilLoader (#1005)
* (Heavily) Reduce memory consumption of AnvilLoader
/!\ requires building and publishing Hephaistos master to local Maven for now

* Cache biome mapping per chunk instead of per section

* Starting work on integration tests

* [AnvilLoader] Address issue #423

* [AnvilLoader] Use new Hephaistos saving API

* Use MavenCentral version of Hephaistos
2022-08-05 21:05:23 +02:00
TheMode f5dc048185 Fix block nbt update
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-23 23:40:57 +02:00
TheMode 8ce43ca40c Test palette placement of high value
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-22 17:44:58 +02:00
iam 0d93faf0db
Fix worldborder size on resize + test (#937) 2022-04-17 19:54:41 +02:00
TheMode 821063addf Fix empty fork
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-14 01:32:54 +02:00
Konstantin Shandurenko 19eae7ef93
EntityTracker fix (#915) 2022-04-13 20:29:05 +02:00
TheMode 59d5bfe6d1 Invalidate ChunkCache on unload
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 23:55:17 +02:00
TheMode 384126e3b4 Optimize block retrieval from Instance
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 23:50:45 +02:00
TheMode 30aa3ac8f3 Fix fillHeight
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-08 15:08:40 +02:00
TheMode a70bb15146
Low level generation API (#574) 2022-04-08 07:19:52 +02:00
iam 50c1083a48
Fix relative max. Currently finds the minimum of all individual bounding box maximums. Updated to find maximum of all bounding box maximums (#869) 2022-04-05 04:20:46 +02:00
themode 3674fcc97d Fix `nearbyEntities` 2022-04-01 20:41:32 +02:00
iam 6891a530f5
Block Collision Physics (#730) 2022-03-09 19:08:42 +01:00
themode 03cf585121 Unnecessary null check 2022-03-07 22:18:03 +01:00
themode bd533fc2f2 Add test to ensure entities are GCed 2022-03-05 17:28:48 +01:00
themode 69ab2c0045 Fix nearbyEntities not working with chunk borders 2022-03-01 03:15:13 +01:00
themode 8839503767 Remove some AdaptivePalette fields 2022-02-25 22:36:39 +01:00
themode c34ec0107e Comment out palette debug 2022-02-25 01:29:35 +01:00
themode 7428176206 Test for palette optimizations 2022-02-24 22:21:11 +01:00
themode 7d752bce88 Test to ensure instances & chunks to eventually be garbage collected 2022-02-14 19:57:55 +01:00
themode 84d154b8db Add ChunkUtils#getChunkCount 2022-02-13 10:27:24 +01:00
TheMode 502db8ec5c Fix block entity packet not being sent on placement
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-10 16:48:59 +01:00
TheMode f633e6e276 Simplify `parseProperties`
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-08 09:42:18 +01:00
TheMode 52852d339a Fix viewable packets in shared instances
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-08 05:28:19 +01:00
TheMode b26abc11b0 Fix shared instance unregistering
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-07 23:39:57 +01:00
TheMode b5bcd8fd4a Avoid string internal during properties parsing
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-25 13:33:14 +01:00
TheMode e9f9829c30 Remove implementation details from Palette to allow better compression
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-25 12:29:17 +01:00
TheMode 6e185c718e Ensure that server-side nbt is not sent over the network
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-22 05:48:32 +01:00
TheMode be1495a385 Add extractClientNbt utils
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-22 05:46:26 +01:00
TheMode d3fa4c810f Ensure that block placements send BlockChangePacket
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-22 04:02:35 +01:00
themode 592adccf81 Improve setAll with constant return 2022-01-10 16:51:21 +01:00
themode 51795ccbd1 Avoid second map operation 2022-01-10 16:51:21 +01:00
themode c58d84bb5d Add Palette#getAllPresent 2022-01-10 16:51:21 +01:00
themode dfeff36857 Optimize #replaceAll 2022-01-10 16:51:21 +01:00
themode 9c11863f3e Optimize setAll 2022-01-10 16:51:21 +01:00
themode 2eae1e2cdc bulkAll and bulkAllOrder 2022-01-10 16:51:21 +01:00
themode 0e70613fb7 Add Palette#replace and Palette#replaceAll 2022-01-10 16:51:21 +01:00
themode 33e1b4b157 Ensure that loop order stays the same 2022-01-10 16:51:21 +01:00
themode 703255e786 test getAll for empty palette 2022-01-10 16:51:21 +01:00
themode 1556bf8586 Ensure bulk all methods get run one for each entry 2022-01-10 16:51:21 +01:00
themode aac07c8ef1 Test palette size 2022-01-10 16:51:21 +01:00
themode 4a46065a67 Nitpicks 2022-01-10 16:51:21 +01:00
themode 0662a3c604 Add Palette#getAll and Palette#setAll 2022-01-10 16:51:21 +01:00
Eoghanmc22 9327dfaccf Fix Palette test 2022-01-10 16:51:21 +01:00
themode 4c31d73bbf Fix palette size when filling to 0 2022-01-10 16:51:21 +01:00
themode 9689c89010 Add Palette#fill 2022-01-10 16:51:21 +01:00
themode 7af813ea72 Move tests 2022-01-10 16:51:21 +01:00