Commit Graph

959 Commits

Author SHA1 Message Date
TheMode fc90fe8852 Remove some `Collections` usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +02:00
Koding 4a5736cc7c
Fix unnecessary allocations with block properties function (#1387) 2022-09-06 14:55:21 +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
GreatWyrm af9dcf258a Move convenience method to PackeetGroupingAudience 2022-08-02 06:23:20 -04:00
GreatWyrm 5aa8b97c60 Add convinence playSound method in instance 2022-08-02 06:23:20 -04:00
TheMode 9a28e6ba87 Fix chunk invalidation during generation forking
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-30 23:12:42 +02:00
Noel Németh bcab1b199b
Limit chunk update packets (#1128) 2022-06-04 22:04:57 +02:00
TheMode f5dc048185 Fix block nbt update
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-23 23:40:57 +02:00
TheMode f80f653ee0 Fast exit for retrieveAll
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-19 12:39:27 +02:00
TheMode d4875b2838 Slightly improve updateAll
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-18 16:37:25 +02:00
TheMode ace42b6f46 Make ObjectArray interface
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-18 08:54:55 +02:00
TheMode 8d7175af73
Replace thread locals to pool (#1079) 2022-05-16 07:34:47 +02:00
TheMode dfd8c94f5f More style
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 06:42:53 +02:00
TheMode 27c4c99949 Misc style
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 04:10:57 +02:00
TheMode fdd3e2c53c Seal snapshot interfaces
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-04 13:25:24 +02:00
emortal a78309a2b2
Fix block break packet using resultant block (#996) 2022-04-27 16:14:54 +02:00
iam 0d93faf0db
Fix worldborder size on resize + test (#937) 2022-04-17 19:54:41 +02:00
TheMode 8b187894f7 Make Instance implements EventHandler
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-17 06:19:14 +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 384126e3b4 Optimize block retrieval from Instance
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 23:50:45 +02:00
TheMode afbc6d6a47 Fix potential NPE
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-11 22:38:37 +02:00
TheMode 5812482922 Document GenerationUnit size guarantee
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-11 21:12:58 +02:00
TheMode 30aa3ac8f3 Fix fillHeight
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-08 15:08:40 +02:00
TheMode b8b850fca1 Print problematic future
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-08 12:20:17 +02:00
TheMode a70bb15146
Low level generation API (#574) 2022-04-08 07:19:52 +02:00
themode 3674fcc97d Fix `nearbyEntities` 2022-04-01 20:41:32 +02:00
TheMode 43734a9c58 Slight nearbyEntities improvement
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-01 16:04:23 +02:00
themode bc0cb57c61 Cache optimization 2022-03-30 16:50:08 +02:00
themode c81b0c0125 Palette misc 2022-03-29 16:50:16 +02:00
TheMode 29a06487ce Better flow control
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-28 23:53:53 +02:00
TheMode 1c9b6f3529 Do not call Chunk#removeViewer
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-27 15:31:34 +02:00
TheMode f2fec73202
Tag internal rework (#782) 2022-03-20 01:47:57 +01:00
themode 055cc409ed Ensure proper chunk synchronization 2022-03-17 00:14:12 +01:00
themode b906bd89ce Oops 2022-03-10 16:07:56 +01:00
themode 9bca6ee0e3 Fix override registry 2022-03-09 17:51:03 +01:00
themode 03cf585121 Unnecessary null check 2022-03-07 22:18:03 +01:00
themode 29f55ee720 Remove PROPERTIES_VALUES 2022-03-07 13:49:56 +01:00
TheMode f7d44c4774
Snapshot API (#722) 2022-03-03 07:44:57 +01:00
themode 96fee8541d Move ObjectArray 2022-03-02 11:44:11 +01:00
themode fa5fe8f208 Simplify 2022-03-01 03:18:49 +01:00
themode 69ab2c0045 Fix nearbyEntities not working with chunk borders 2022-03-01 03:15:13 +01:00
themode 9a7d5039a7 Change assert 2022-03-01 01:04:58 +01:00
themode e23de98587 InstanceContainer misc improvements 2022-03-01 00:35:55 +01:00
themode 4512cef7d9 Use bytes whenever possible 2022-02-27 22:50:58 +01:00
themode 41862c576b No need to update the palette count on resize 2022-02-27 01:14:57 +01:00
themode 5579415513 FlexiblePalette cleanup 2022-02-26 22:37:53 +01:00
TheMode 50c0f01fb2
View engine improvements (#715) 2022-02-26 00:10:26 +01:00
themode 487fbcb5b9 Stricter resize rule 2022-02-25 22:58:55 +01:00
themode 8839503767 Remove some AdaptivePalette fields 2022-02-25 22:36:39 +01:00