Commit Graph

68 Commits

Author SHA1 Message Date
mworzala e18d7fb798
fix: do not process disconnected queued config->play transition players 2024-04-30 13:56:38 -04:00
DeidaraMC dc17d171ce
feat: vanilla style Instance#setWeather method overload, weather api improvements (#2064)
* feat: weather update

* chore: Weather#createIsRainingPacket use isRaining
2024-03-29 10:12:45 -04:00
iam 6e179dbd8a
Fix Lighting Invalidation (#2041)
-  Fix invalid lighting being sent to clients
-  Add cherry leaves to occludes
-  Fix lighting being generated when using loaded lighting
-  Send lighting to clients on block changes
-  Cleanup unused methods
-  Add sky lighting test for short grass
2024-03-24 16:23:26 -04:00
DeidaraMC 32f96683ee
feat: add weather to instances (#2032)
* feat: instance weather system

* chore: weather documentation

* chore: remove unused weather fields

* feat: linear weather interpolation

* chore: register weather command

---------

Co-authored-by: DeidaraMC <DeidaraMC>
Co-authored-by: mworzala <mattheworzala@gmail.com>
2024-03-19 16:44:51 +00:00
Matt Worzala 2947279898
Remove `FakePlayer` (#2006)
* feat: remove FakePlayer

* fix: oops, demo server exists
2024-02-27 13:37:42 +00:00
iam 7320437640
Optionally load vanilla biomes (#1988)
* Add biomes from vanilla

* cleanup

* rework biomes

* nullability

* getByName string

* expose vanilla biomes

* not null

* before rename

* rename

* nbt cache

* fix

* fix

* fix

* final on vanilla biome
2024-02-12 15:25:46 -05:00
iam4722202468 c8f96cbb16 fix relight command 2024-02-10 18:06:31 -05:00
mworzala 77df1bdfd2
fix: correctly refresh client state on death 2024-02-10 17:42:02 -05:00
Spongecade e9e58e4fce
Update Minecraft Wiki links to new domain
(cherry picked from commit 478eba12fb)
2024-02-09 15:03:05 -05:00
mworzala 04ae4117be fix: oops, forgot to remove some stuff 2024-02-09 14:27:43 -05:00
iam 8aedd5fc26 Send Lighting Immediately (#131)
Fix lighting

(cherry picked from commit 0494ee0b97c0ce28ffd6d744a494c65fa8308658)
2024-02-09 14:27:43 -05:00
mworzala a14dbf5cdd fix: shaped recipe protocol reorder
(cherry picked from commit 9d6752c86f)
2024-02-09 14:27:43 -05:00
mworzala 3a25d0124d fix: Player#switchEntityType throws an exception
(cherry picked from commit 9fc4137995)
2024-02-09 14:27:43 -05:00
mworzala d544c8776a fix: fakeplayer can spawn once again (#94)
(cherry picked from commit 5347c0b11f)
2024-02-09 14:27:43 -05:00
mworzala f4cb5272f9 fix: re-merge connection states, remove OptifineSupport
(cherry picked from commit a0ca4895b1)
2024-02-09 14:27:43 -05:00
mworzala 84a1150afe fix: update advancement packet to 1.20.4
(cherry picked from commit 03ef3e2374)
2024-02-09 14:27:43 -05:00
mworzala d7abff5c43 feat: conform to Adventure resource pack API, remove Minestom resource pack types
(cherry picked from commit 40ac94d092)
2024-02-09 14:27:43 -05:00
mworzala 6f30edb411 feat: implement 1.20.2 client-rate-limited chunk batching
(cherry picked from commit e24cb62583)
2024-02-09 14:27:43 -05:00
Matt Worzala 58b550c5ff Fix testing (v2) (#99)
* Fix Minecraft changes since 1.19 (Block.GRASS, recipe packet, DamageType.VOID)

* Add packets in play state

* Fix some tests via TestConnectionImpl and API changes

* fix: add some missing entity metas, group projectiles

---------

Co-authored-by: GoldenStack <goldenfire64yt@gmail.com>
(cherry picked from commit 89a665fdf5)
2024-02-09 14:27:43 -05:00
DeidaraMC ed13961e90 new scoreboard protocol number format conformance (#98)
* new scoreboard protocol conformance

* fix: pass number format through when reading scoreboard packet

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
(cherry picked from commit 2003f75f1f)
2024-02-09 14:27:43 -05:00
mworzala c9ee2b56b2 chore: revert (mostly) ConnectionManager#getOnlinePlayers change
(cherry picked from commit 8859af87ba)
2024-02-09 14:27:43 -05:00
mworzala ef2b5e03bc fix: send LEVEL_CHUNKS_LOAD_START state on all instance changes, not just first join
(cherry picked from commit 1813cdb1a8)
2024-02-09 14:27:43 -05:00
mworzala 1b286979c5 chore: minor cleanup
(cherry picked from commit ac4c54731c)
2024-02-09 14:27:43 -05:00
mworzala 1ffb46c3b2 fix: correct display pos/rot interpolation metadata index, minor cleanup
(cherry picked from commit ccdc5535e3)
2024-02-09 14:27:43 -05:00
mworzala bd58b1b9f6 feat: cleanup, remove ConnectionManager#getOnlinePlayers
(cherry picked from commit 8a75e9e986)
2024-02-09 14:27:43 -05:00
mworzala b9c2d42696 feat: start reentry of config phase
(cherry picked from commit e702c09f06)
2024-02-09 14:27:43 -05:00
mworzala d324d47cab chore: remove some unnecessary logging
(cherry picked from commit b04fca8e7f)
2024-02-09 14:27:43 -05:00
mworzala 5caffb134c feat: add AsyncPlayerConfigurationEvent, remove PlayerLoginEvent
(cherry picked from commit 1161fbf1b1)
2024-02-09 14:27:43 -05:00
mworzala 9439b62ff0 chore: port DamageType cleanup change from MelonHell 1.19.4 PR
(cherry picked from commit 9eab3d4f8b)
2024-02-09 14:27:43 -05:00
mworzala 183159c85d finish configuration phase, ish
(cherry picked from commit 13edf5f863)
2024-02-09 14:27:43 -05:00
mworzala f4a123192b fix: bad collision shape parsing
(cherry picked from commit 666bb98957)
2024-02-09 14:27:43 -05:00
Matt Worzala 6805c903f3 hollow-cube/command-parser-fixes (#54)
* Rewrite CommandParserImpl recursively (fix #1327)

* Fix for tests: CommandManagerTest, CommandParseTest

* Make attributes final inside Chain

* fix #1295 with argument type priority

* Don't include command name in list of arguments

* Add test for #1327

* Add test for #1295

* Fix suggestions with bad syntax

* Fix #1916

* Add test for #1916

* add failing test

* mess with arg order

* Fix `GraphImpl` causing syntax order issues

---------

Co-authored-by: Spanner <spanner77@protonmail.com>

(cherry picked from commit e9d0098418)
2024-02-09 14:27:43 -05:00
mworzala 5d00aa5f28 rename main back to master, minor cleanup 2024-02-09 14:27:43 -05:00
mworzala 4ece2aa378 hollow-cube/1_20-advancement-packet-fix
(cherry picked from commit 1f87f26b4f)
2024-02-09 14:27:43 -05:00
mworzala ef075bec3f hollow-cube/block-update-changes
(cherry picked from commit 74ca1041f3)
2024-02-09 14:27:43 -05:00
mworzala bb6a93da89 hollow-cube/prevent-block-updates
(cherry picked from commit 55a1349049)
2024-02-09 14:27:43 -05:00
mworzala 7a374a5079 hollow-cube/fix-entity-metadata-translation
(cherry picked from commit d47db72421)
2024-02-09 14:27:43 -05:00
mworzala 37f6877b0a hollow-cube/block-handler-in-chunk-setblock
(cherry picked from commit 54e839e58a)
2024-02-09 14:27:43 -05:00
iam b32146a316 hollow-cube/lighting-update-2
Delay light sending, send lighting slower, fix sending multiple times

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
(cherry picked from commit 8a5c610b7b)
2024-02-09 14:27:43 -05:00
mworzala f019fe69d0 hollow-cube/respectful-chunk-sending
(cherry picked from commit 9f3ee89506)
2024-02-09 14:27:43 -05:00
mworzala a18485e61e hollow-cube/block-interact-ack-fix
(cherry picked from commit 1f1a2bf196)
2024-02-09 14:27:43 -05:00
Matt Worzala 128c525b7c hollow-cube/placement-rule-improvement
* improve placement rule api and remove existing vanilla rules

* readme changes

(cherry picked from commit b0b640ccd7)
2024-02-09 14:27:43 -05:00
iam 912fb34f17 hollow-cube/lighting (#13)
* Lighting

* Remove invalidate

* Private

* Fix chunk loading

* Small fixes

* Fix loading light from anvil world

* Fix solid

* Temporary

* Fix tests, add seagrass and tall seagrass to diffusion list

* Make test faster, replace hephaistos

* Cleanup

* Assume failed test

* Fix chunk not getting invalidated

(cherry picked from commit f13a7b49fa)
2024-02-09 14:27:43 -05:00
Matt Worzala 8f1f7e127d 1.19.4 (#11)
* first join

* add new entities

* fix type on interpolation duration

* switch long to var long

* switch long to var long, round 2

* add flags to TextDisplay

* 1.19.4

* setView in Entity#teleport

* do not trigger touchTick if entity physics are disabled

* Add new 1.19.4 packets

* constant expr

* no localhost on github actions

* yoinked changes from 1.19.3 main

* update to forked changes

* remove potion command

* remove potion command

---------

Co-authored-by: GreatWyrm <alecmusante@gmail.com>

(cherry picked from commit 7f3144337d)
2024-02-09 14:27:43 -05:00
Matt Worzala 9e85687575 hollow-cube/gradle-rework (#8)
* in order to make an omelet, you have to break a few eggs. aka absolutely decimate the gradle project

* far more sane gradle, no publishing yet tho

* attempt maven deploy

* fix publish url and use snapshot repo

* fix secret names

* release, and properly set version

* attempt to set group correctly

* more gradle fixups

(cherry picked from commit 381d89497a)
2024-02-09 14:27:43 -05:00
Codestech cb3892255e
1.19.3 (#1851)
* hollow-cube/1.19.3

Signed-off-by: mworzala <mattheworzala@gmail.com>

fix sounds v2

(cherry picked from commit e6d4a2cc919d6ab5aa9402cc871a70535069d803)

fix command packet

(cherry picked from commit f3efd64f7bd1d0473e0899d202268f77bab35abf)

fix sound effect packets

(cherry picked from commit 8530b37b354129a2149aafe2820183b28766be00)

remove named sound effect & fix sound effect, entity sound effect packet is still wrong

(cherry picked from commit 612f6065a12c465c07816c8551b1c44f17c21159)

update NamedSoundEffectPacket to 1.19.3

(cherry picked from commit 8c78d9beac96f94770f6fd0e9216452c3421bcfd)

update datagen, add read method to player info update (though it seems kinda broken)

(cherry picked from commit 6464a72dabc5edaf9b09ef1b8100815965bbad74)

Add ChatSession

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 0488915fda)

Unnecessary line change

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 915836f490)

Make tests compile

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 220217fcc1)

Fix info update

Signed-off-by: TheMode <themode@outlook.fr>

(cherry picked from commit 1a606285c0)

Fix unsigned message

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 7ba55fdfef)

1.19.3 support

(cherry picked from commit f09fdd862b)

* Cleanup

* Fix tests

* Fix tests round 2

* Cleanup round 2

* remove logback

* remove chatbound

* don't use magic numbers

* Fix formatting

* Unused imports

* Fix and add update display name packet test back

* Cleanup tests

* Bump minestom data

* Add ArgumentResource and ArgumentResourceOrTag

* Fix spacing

---------

Co-authored-by: themode <themode@outlook.fr>
Co-authored-by: KrystilizeNevaDies <tyreece@rozycki.family>
Co-authored-by: iam <iam4722202468@users.noreply.github.com>
2023-05-21 17:51:13 +03:00
Tyreece Rozycki e0427a36f3
Debug grid demo command (#1809) 2023-05-13 22:41:33 +10:00
TheMode fc90fe8852 Remove some `Collections` usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +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
Noel Németh 793561e0cb
Simplify command graph generation (#1200) 2022-07-02 05:39:39 +02:00