Commit Graph

906 Commits

Author SHA1 Message Date
iceiix ecf829c544
Update dependencies: reqwest, serde, serde_json (#755)
* Bump reqwest to 0.11.13. Closes #751

* Bump serde to 1.0.152. Closes #752

* Bump serde_json to 1.0.91. Closes #753
2022-12-31 17:45:27 -08:00
iceiix 3043b0ab02
Update dependencies: image, flate2
* Bump flate2 to 1.0.25. Closes #748

* Bump image to 0.24.5. Closes #749
2022-12-31 17:23:10 -08:00
Slushie 67e019faba
entity/player: rotate nametag to face player (#746)
Nametag is rotated to face the player (Around the Y axes. it still doesn't rotate up or down, I don't know how to rotate it on both axis)
2022-12-31 08:30:22 -08:00
iceiix 96ff1c5c15
Update deps: base64 (#745), winit (#744) (#747)
* Update base64 to 0.13.1. Closes #744

* Update winit to 0.27.5. Closes #745

* cargo update
2022-11-25 09:14:37 -08:00
iceiix 6ad43b3ccb
Merge pull request #731 from nathanruiz/digging
Add the ability to break blocks
2022-10-30 16:10:45 -07:00
iceiix dd62293165
Merge pull request #743 from iceiix/rust1.64
Update to Rust 1.64.0
2022-10-30 16:02:19 -07:00
ice_iix e4c5e61857 Fix clippy::manual_find, replace with an iterator
This manual implementation of Iterator::find can be replaced with
`find`, which has the same performance, but Clippy considers easier to
read than the original implementation.
2022-10-30 15:36:50 -07:00
ice_iix 6394b60a39 Fix clippy::needless_borrow in console
Clippy says the compiler automatically borrows this
2022-10-30 15:32:31 -07:00
ice_iix ab5f87effd Update to Rust 1.64.0 2022-10-30 15:31:24 -07:00
ice_iix e8558b427a Fix clippy::type_complexity, refactor type alias
Use a type alias to refactor the submit_funcs type definition, as a
vector of boxed SubmitFuncs. Note this type alias isn't used in the
parameterized add_submit_func() function because it accepts a trait, not
a type - no `dyn` keyword in this context, but it is needed in the type
definition.
2022-10-30 15:27:28 -07:00
ice_iix 46535904bc Update to Rust 1.63.0 2022-10-30 15:22:31 -07:00
ice_iix 4c45ada7ef Fix clippy::drop_non_drop on MaybeUninit<T> in ecs
std::mem::drop was called on a value which does not implement `Drop`,
specifically std::mem::MaybeUninit<T>. According to the Clippy warning,
this only extends its contained lifetime. Change to assume_init_drop().
2022-10-30 15:18:46 -07:00
ice_iix de0891b1da Update to Rust 1.62.0 2022-10-30 15:11:24 -07:00
Nathan Ruiz ee8e6cb9f3 Fix formatting 2022-10-30 21:46:21 +00:00
iceiix 80a078bd04
Merge pull request #727 from nathanruiz/master
Support chunks with negative y values
2022-10-30 08:06:45 -07:00
Nathan Ruiz 4ac2a8dafa Fix position serialization 2022-10-24 16:04:54 +00:00
Nathan Ruiz 18b2641d66 Send correct dig packet for each version 2022-10-24 16:04:30 +00:00
Nathan Ruiz ddd9eb26e4 Fix formatting issues 2022-10-24 09:21:33 +00:00
iceiix 620ff3a167
Update dependencies from dependabot (#742)
* Bump web-sys to 0.3.60. Closes #725
* Bump wasm-bindgen 0.2.83. Closes #726
* Bump reqwest 0.11.12. Closes #728
* Bump image 0.24.4. Closes #730, closes #733
* Bump winit 0.27.4. Closes #736
* Bump zip 0.6.3. Closes #737
* Bump serde_json 1.0.87. Closes #739
* Bump getrandom 0.2.8. Closes #740
* Bump serde 1.0.147. Closes #741
* Bump num-traits 0.2.15. Closes #734
* Update Cargo.lock
2022-10-23 16:57:28 -07:00
ice_iix 8b428c420f Remove Dependabot in favor of Renovate
To reduce the frequency of dependency updates, switching to Renovate
with a monthly batch update model, instead of using Dependabot.

See #668 Configure Renovate and #709 Dependency Dashboard
2022-10-23 16:06:25 -07:00
Nathan Ruiz 700a31013f Add digging to ECS 2022-09-27 07:07:22 +00:00
Nathan Ruiz d601ec3907 Add data to blocks required for digging 2022-09-27 07:07:22 +00:00
Nathan Ruiz 7edc7ee4fa Parse light values in 1.18 2022-09-18 04:45:00 +00:00
Nathan Ruiz 8f96f6169f Write tests for parsing chunks across versions 2022-09-16 17:41:05 +00:00
Nathan Ruiz a5b3b61989 Refactor chunk section management to support 1.18 2022-09-16 07:17:09 +00:00
iceiix fe8d8ece9c
Fix set_cursor_grab on Linux. Closes #714 (#717)
The glutin/winit update in #700 changed set_cursor_grab from a bool to
an enum, but always used CursorGrabMode::Locked, which is only available
on macOS. Conditionally compile to use CursorGrabMode::Confined otherwise.
Fixes #714 and fixes #713 

* set_cursor_grab failed with NotSupported(NotSupportedError) on Linux
Patch from https://github.com/iceiix/stevenarella/issues/714

* cargo fmt

Co-authored-by: inferno <inferrna@gmail.com>
2022-08-28 09:30:56 -07:00
iceiix bbbe58a112
Update to Rust 1.59.0 (#718)
* Update to Rust 1.59.0

* Fix clippy::single_char_pattern in console, ui/logo

* Fix clippy::needless_late_init in load_block_entities
2022-08-28 08:27:39 -07:00
renovate[bot] 303783f4f5
Configure Renovate (#668)
* chore(deps): add renovate.json

* renovate: schedule monthly updates

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-07 19:01:10 -07:00
iceiix 069a3915bd
1.18.2 protocol (758) (#706)
Minor protocol update

https://minecraft.fandom.com/wiki/Java_Edition_1.18.2
https://wiki.vg/index.php?title=Protocol&oldid=17499 1.18.2 (758)
https://wiki.vg/index.php?title=Protocol&diff=17499&oldid=17341 1.18.1 (757) vs 1.18.2 (758)

* Add EntityRemoveEffect_VarInt, split i8 variant
* Add UpdateScore_VarInt, split u8 variant
* Add EntityEffect_VarInt, split i8 variant
2022-08-06 17:35:55 -07:00
iceiix adb71c7caa
Update dependencies: image, serde, serde_json (#707)
* Bump image to 0.24.3. Closes #702

* Bump serde to 1.0.142. Closes #704

* Bump serde_json to 1.0.83. Closes #705
2022-08-06 17:33:27 -07:00
iceiix 1f183ed76e
1.18.1 protocol (757) (#640)
https://wiki.vg/index.php?title=Protocol&oldid=17203 1.18.1
https://wiki.vg/index.php?title=Protocol&type=revision&diff=17203&oldid=16918 1.18.1 vs 1.17.1

* protocol: add UpdateSimulationDistance packet and update IDs
* protocol: add JoinGame_WorldNames_IsHard_SimDist packet variant
* protocol: add UpdateBlockEntity_VarInt packet variant
* protocol: start adding ChunkData_AndLight, combining ChunkData + UpdateLight
* protocol: ChunkData_AndLight: add struct BlockEntityAtPackedLocation

* server: handle JoinGame_WorldNames_IsHard_SimDist packet variant
* server: handle combined chunk data and light packet
* server: on_chunk_data_and_light: set all bits in now-removed bitmask

* bit map: add derived std::fmt::Debug implementation
* bit map: allow creating, but not accessing, zero-length bit maps

* world: sanity check chunk bit_size, failing earlier
* world: read biome data bits after palette
* world: support single-valued palettes
* world: handle single-valued biomes
* world: add checks for direct palettes; update comments
* world: parse dimension tags
* world: load dimension type tags: min_y
* world: skip chunk sections underneath y<0
* world: force filling sky on 1.18+ for now, workaround until mask/fill_sky can be calculated correctly wrt min_y

* readme: add 1.18.1 (757)
2022-08-06 16:32:40 -07:00
iceiix 2e224a77f9
clipboard: update to fork updating x11-clipboard for xcb (#701)
Using https://github.com/aweinstock314/rust-clipboard/pull/89
2022-07-30 17:11:36 -07:00
iceiix ba3cf43f93
Update dependencies: glutin 0.29, winit 0.27, and more (#700)
* Update to glutin 0.29.0, winit 0.27.0. Closes #695
Change true/false to CursorGrabMode::Locked/None for set_cursor_grab
https://github.com/rust-windowing/winit/releases/tag/v0.27.0
> Breaking: Window::set_cursor_grab now accepts CursorGrabMode to control grabbing behavior.

* Update web-sys to 0.3.59. Closes #699

* Update flate2 to 1.0.24. Closes #698

* Update zip to 0.6.2. Closes #697

* Update to log 0.4.17. Closes #696
2022-07-30 15:54:49 -07:00
iceiix e00e249793
Update dependencies (#694)
* Update rand to 0.8.5. Closes #665

* Update web-sys to 0.3.55. Closes #637

* Update glow to 0.11.2. Closes #641

* Update to structopt 0.3.26. Closes #652

* Update to crossbeam-deque 0.8.2. Closes #680

* Update crossbeam-utils to 0.8.11. Closes #681

* Updaet tokio to 1.16.1. Closes #682

* protocol: Update tokio to 1.19.2. Closes #683, closes #684

* Update reqwest to 0.11.11. Closes #685

* Update getrandom to 0.2.7. Closes #686

* Update wams-bindgen to 0.2.81. Closes #687

* Update serde_json to 1.0.82. Closes #689

* Update serde to 1.0.140. Closes #693
2022-07-30 14:49:30 -07:00
iceiix 45f9cd45b0
GitHub Actions: clippy interaction fix for Win/Mac (#671) 2022-03-06 18:25:27 -08:00
iceiix 2fd10442bb
Update to Rust 1.58.1 (#669) 2022-03-06 14:19:46 -08:00
ice_iix 9486bf817b render: suppress clippy::uninit_vec for now 2022-03-06 13:39:20 -08:00
iceiix d16c24b8fe
GitHub Actions: manually run clippy if resource not accessible (#662)
* GitHub Actions: manually run clippy if resource not accessible, https://github.com/actions-rs/clippy-check/issues/2#issuecomment-807878478

* readme: update status badge for GitHub Actions
2022-02-19 16:26:17 -08:00
iceiix 3b43c7661f
Update to Rust 1.58 (#661) (fixes #650)
* Bump Rust version to 1.58

* Update to Rust 1.58 in CI and readme

* Cargo.toml: fix typo for rust-version (https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field)

Co-authored-by: Ben Reeves <benwolverine2019@gmail.com>
2022-02-05 16:13:51 -08:00
Ben Reeves 9a8d3572eb Derive Clone, PartialEq, Eq, and Hash where appropriate.
This is really useful for anyone who wishes to use the steven_protocol
crate and write tests that compare packets to expected values.
2022-02-05 15:42:38 -08:00
ice_iix 00e7a3d1bc 1.13.2+: correct particle IDs, fixes Failed to read all of packet 0x24
Updates https://github.com/iceiix/stevenarella/issues/377#issuecomment-1003598682
2022-01-02 08:10:50 -08:00
iceiix 21a1b64a14
Merge pull request #639 from iceiix/rust2021
Update to Rust 1.57.0 and 2021 edition
2021-12-24 10:53:27 -08:00
ice_iix 2cec81fd06 Cargo.toml: add minimum supported rust_version 2021-12-24 09:37:01 -08:00
ice_iix a90a6af7c2 Update to Rust 2021 2021-12-24 09:32:56 -08:00
ice_iix c3edf715ef Fix clippy needless_borrow and unused_mut 2021-12-24 09:25:15 -08:00
ice_iix 669e37ac5c Suppress dead_code warnings for unused fields new in Rust 1.57 2021-12-24 09:17:58 -08:00
ice_iix 6f8dcea2a5 Update to Rust 1.57.0 2021-12-24 09:13:17 -08:00
iceiix c8cb29e1fa
Update dependencies: flate2, dirs, structopt, instant, serde... (#636)
* Bump flate2 to 1.0.22. Closes #614

* Bump wasm-bindgen to 0.2.78. Closes #616

* Bump dirs to 4.0.0. Closes #617

* Bump console_error_panic_hook to 0.1.7. Closes #622

* Bump structopt to 0.3.25. Closes #623

* Bump instant to 0.1.12. Closes #624

* Bump serde to 1.0.132. Closes #634

* Bump serde_json to 1.0.73. Closes #633

* Bump reqwest to 0.11.8. Closes #635

* Update Cargo.lock
2021-12-24 09:04:43 -08:00
iceiix 080851353c
Update to Rust 1.55.0 (#618) 2021-09-29 17:06:29 -07:00
iceiix cfcc7d2a1f
1.17.1 (756) protocol (#605)
https://wiki.vg/index.php?title=Protocol&oldid=16918

New and changed packets:
* 1.17.1 packet id shifts, new clientbound packets
* Add WindowPong new packet serverbound
* Add Tags_Nested packet variant
* Add TeleportPlayer_WithDismount packet variant
* Add ChunkData_Biomes3D_Bitmasks packet variant 
* Add WindowItems_StateCarry variant, split WindowItems_i16
* Add WindowSetSlot_State packet variant
* Add Explosion_VarInt packet variant
* Add UpdateLight_Arrays variant
* Add ResourcePackSend_Prompt variant
* Add SpawnPosition_Angle variant
* Add EntityProperties_VarIntVarInt variant, using VarInts in both fields 
* Add ClientSettings_Filtering variant
* Add ClickWindow_State variant
* Add EditBook packet variant 
* Fix many Particle packet variant definitions

* server: handle TeleportPlayer_WithDismount
* server: handle ChunkData_Biomes3D_Bitmasks

* world: add num_sections to self.load_chunk19_or_115
* world: load_chunk19_to_117: accept 64-bit mask

* metadata: add PoseData::LongJumping 

* protocol: update Cargo.lock for serde_json 1.0.130
* build: pin to wasm-pack 0.10.0
2021-09-05 13:30:32 -07:00
dependabot[bot] 83bbb9fe4f
gl: Update to glow 0.11.0 (#594)
* gl: update for newtype wrappers Default impl

* build(deps): bump glow from 0.10.0 to 0.11.0

Bumps [glow](https://github.com/grovesNL/glow) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/grovesNL/glow/releases)
- [Commits](https://github.com/grovesNL/glow/commits)

---
updated-dependencies:
- dependency-name: glow
  dependency-type: direct:production
  update-type: version-update:semver-minor
2021-09-01 19:21:49 -07:00
ice_iix 0d5feb9454 build(deps): update serde, wasm-bindgen, web-sys
Bump serde to 1.0.129. Closes #604
Bump wasm-bindgen to 0.2.76. Closes #595
Bump web-sys to 0.3.52. Closes #591
2021-08-29 18:44:00 -07:00
terrarier2111 3ae7e0e178
Fix transparency while ingame (#592). Fixes #570 2021-08-29 18:25:35 -07:00
iceiix 755aaf9ede
Update protocol crate dependencies (#590), closes #587
* protocol: bump hex to 0.4.3

* protocol: bump sha-1 to 0.9.7

* protocol: bump num-traits to 0.2.14

* protocol: bump aes to 0.7.4, cfb8 to 0.7.1
2021-08-16 07:22:01 -07:00
ice_iix 107d4f4f4a protocol: bump serde to 1.0.127, updates #586 2021-08-15 18:45:07 -07:00
dependabot[bot] 96809a1848
build(deps): bump serde from 1.0.126 to 1.0.127 (#586)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.126 to 1.0.127.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-15 18:43:03 -07:00
dependabot[bot] 3eb735eb48
build(deps): bump wasm-bindgen from 0.2.74 to 0.2.75 (#585)
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) from 0.2.74 to 0.2.75.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.74...0.2.75)

---
updated-dependencies:
- dependency-name: wasm-bindgen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-15 18:42:54 -07:00
iceiix 1a9e8d406c
Merge pull request #580 from iceiix/rust1.54
Update to Rust 1.54
2021-08-05 07:00:13 -07:00
dependabot[bot] a35b9d241f
build(deps): bump serde_json from 1.0.64 to 1.0.66 (#579)
* build(deps): bump serde_json from 1.0.64 to 1.0.66

Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.64 to 1.0.66.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.64...v1.0.66)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* protocol: update to serde_json 1.0.66

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ice_iix <ice_ix@protonmail.ch>
2021-08-01 06:39:35 -07:00
ice_iix 47df12b5ee main: allow clippy::needless_borrow since it isn't needless for web 2021-08-01 06:25:57 -07:00
ice_iix 3d1bea85fe Fix clippy::needless_borrow 2021-08-01 06:19:48 -07:00
ice_iix eb420c4896 Fix clippy::manual_str_repeat 2021-08-01 06:19:48 -07:00
ice_iix 814b6ab422 Update to Rust 1.54.0 2021-07-31 19:03:15 -07:00
terrarier2111 44fd1f933c
screen: fixed a focusing bug in the settings (#565)
The game was previously focused after clicking the done button in the individual settings, which would cause the game to be focused while still in the main settings menu.
2021-07-31 18:56:06 -07:00
iceiix a25a2382b0
Update to rsa_public_encrypt_pkcs1 0.4.0 (#577)
* Update to rsa_public_encrypt_pkcs1 0.4.0

* cargo update
2021-07-18 17:23:15 -07:00
iceiix fd5290fa4f
Update reqwest, structopt, instant. Closes #561, #574, #574 (#576)
* Update to reqwest 0.11.4. Closes #561
* Update to structopt 0.3.22. Closes #574
* Update to instant 0.1.10. Closes #575
* Update cargo.lock
* protocol: update Cargo.lock
2021-07-18 09:44:37 -07:00
terrarier2111 d260162642
entity/systems: fixed typo in comment (#566) 2021-07-18 09:12:42 -07:00
terrarier2111 9e0dc7cceb
settings: remove outdated comment (#564)
This notice is outdated as the file was already renamed to settings.rs.
2021-07-18 09:09:00 -07:00
iceiix 9712387ec0
Update to winit 0.25, glutin 0.27. Closes #541 (#546) 2021-07-18 09:07:50 -07:00
iceiix 72f5fdf619
Merge pull request #559 from iceiix/rust1.53
Update to Rust 1.53.0
2021-06-18 19:47:29 -07:00
ice_iix b145e1ad0e Fix clippy::branches_sharing_code in chunk loading 2021-06-18 19:32:26 -07:00
ice_iix 526dfa65b6 Fix clippy::uninit_assumed_init, use MaybeUninit<T> 2021-06-18 19:32:26 -07:00
ice_iix 728367c59b Fix clippy::collapsible_match, collapse it 2021-06-18 19:32:26 -07:00
ice_iix 53a0bc9fb6 Fix clippy::manual_flatten, use flatten() 2021-06-18 19:32:26 -07:00
ice_iix d15229dd0b Fix clippy::mem_replace_with_default, use std::mem::take 2021-06-18 19:32:26 -07:00
ice_iix c4dac61ab5 Fix clippy::manual_map, no longer manual 2021-06-18 19:32:26 -07:00
ice_iix 26a22750d5 Cargo.toml: split debug info for faster builds
https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#splitting-debug-information
2021-06-18 19:32:26 -07:00
ice_iix e980bfc940 Cargo.toml: use new resolver = 2
https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver
In my testing, the target release binary is 136 bytes smaller (insignificant).
2021-06-18 19:32:26 -07:00
ice_iix 9ae87f9340 Update to Rust 1.53.0 2021-06-18 19:32:09 -07:00
iceiix a48a6f5a99
Update zip, glow, rand, rand_pcg (#557)
* Bump zip to 0.5.13. Closes #551

* Bump glow to 0.10.0. Closes #552

* Bump rand to 0.8.4. Closes #555

* Bump rand_pcg to 0.3.1. Closes #554
2021-06-18 14:01:08 -07:00
Bart Ribbers a7b093c93d Remove mention of Freenode channel
As most people know, Freenode has changed owners and a lot of stuff
happened since. No need to go into details here, but all IRC channels on
the network are gone and control by channel operators is lost.
The channel wasn't really used anyway, so let's stop mentioning it
2021-06-18 06:26:41 -07:00
iceiix 08900fc6f7
www: remove npm package-lock.json for now (#556)
While the package lock is useful to consistently include the same
versions of each package, right now it causes too much noise with
dependabot, as new versions are released but with little or no impact on
this project because the web port is not yet usable (see #446 🕸️ Web
support)
2021-06-18 06:09:34 -07:00
dependabot-preview[bot] caa9e825b8
Upgrade to GitHub-native Dependabot (#535)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: ice_iix <ice_ix@protonmail.ch>
2021-05-25 08:14:50 -07:00
iceiix 63c9d81687
Update to glow 0.9.0. Closes #532 (#545) 2021-05-25 08:13:07 -07:00
iceiix 9e570d953d
Update web-sys, getrandom dependencies (#547)
* Bump web-sys to 0.3.51. Closes #543

* Bump getrandom to 0.2.3. Closes #544

* Update Cargo.lock
2021-05-25 08:10:51 -07:00
iceiix 24b6d84414
Update web dependencies (#542)
* Bump elliptic to 6.5.4. Closes #520

* Bump y18n to 4.0.1. Closes #528

* Bump ssri to 6.0.2. Closes #531

* Bump url-parse to 1.5.1. Closes #536

* Bump lodash to 4.17.21. Closes #537
2021-05-23 12:11:35 -07:00
dependabot-preview[bot] 7611a52374
build(deps): bump wasm-bindgen from 0.2.71 to 0.2.74 (#538)
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) from 0.2.71 to 0.2.74.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.71...0.2.74)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-05-17 20:24:33 -07:00
iceiix 0563757cb0
Update dependencies: byteorder, reqwest, zip, dirs, serde (#540)
* Bump byteorder to 1.4.3. Closes #522

* Bump reqwest to 0.11.3. Closes #529

* Bump zip to 0.5.12. Closes #530

* Bump dirs to 3.0.2. Closes #533

* Bump serde to 1.0.126. Closes #539

* Update Cargo lock
2021-05-16 21:13:50 -07:00
Kezi eb452abbb5
protocol/item: update to support protocol_version >= 404 (1.13.2+) (#524) 2021-03-25 08:21:25 -07:00
iceiix abbc58b9ef
deps: update reqwest, wasm-bindgen, serde_json, image (#516)
* Bump reqwest to 0.11.1, closes #504

* Bump wasm-bindgen to 0.2.71, closes #513

* Bump serde_json to 1.0.64, closes #514

* Bump image to 0.23.14, closes #515

* cargo update
2021-03-06 16:47:38 -08:00
Kezi 8cecbb37e3
server: fix block placement in 1.16 (#512)
* fix block placement in 1.16

* fmt
2021-03-03 19:34:36 -08:00
Kezi e3845a0dbf
protocol: fix panic in chat formatting, closes #505 (#506)
* remove panic on chat thing

* fmt
2021-03-03 19:28:43 -08:00
ice_iix d7b7216315 server: thread_rng is a CSPRNG, closes #508 2021-03-03 19:11:56 -08:00
ice_iix 995cf981c5 main: remove console chat activation, updates #479 2021-02-18 17:40:45 -08:00
iceiix 7dcbac2a5d
Update dependencies: serde, log, rand, flate2, image (#502)
* cargo update all modules

* Bump serde to 1.0.123. Closes #496

* Bump wasm-bindgen to 0.2.70. Closes #497

* Bump log to 0.4.14. Closes #498

* Bump rand to 0.8.3. Closes #499

* Bump flate2 to 1.0.20. Closes #500!

* Bump image to 0.23.13. Closes #501
2021-02-06 13:49:49 -08:00
iceiix 3e3bcdc5da
protocol, console, server: receive chat messages (#479)
Implements support for receiving chat messages from the server, the
first step towards #63 chat support. Long way to go, but is a start.

* server: handle ServerMessage_* packets, on_servermessage

* format: get the with arguments of translations
* format: hardcode chat types
* format: support bare strings, used in chat.type.text
* format: use extra text if present, fixes missing username on 1.16.5

* console/main/server: activate on receiving chat messages
2021-01-24 17:41:16 -08:00
iceiix 6b961622aa
forge: add FML2 protocol support (1.13.2-1.16.5+), fixes #400 (#494)
Allows connecting to newer Forge servers, 1.13.2 to 1.16.5 at least, which use
the FML2 handshake protocol:

https://wiki.vg/Minecraft_Forge_Handshake#FML2_protocol_.281.13_-_Current.29

Tested with a modded 1.16.5 server

Extends #88 #134 Forge FML (v1, for 1.7.10 - 1.12.2)

* protocol: update Cargo.lock
* protocol: send FML2 on fmlNetworkVersion: 2
* protocol: factor out read_raw_packet_from()
* protocol: move plugin message writing from Server to Conn; add write_fml2_handshake_plugin_message
* protocol: CommandNode: add forge:modid, forge:enum
* forge: add fml2 handshake packets
* server: handle fml:loginwrapper fml::handshake packets
2021-01-23 13:47:30 -08:00
dependabot-preview[bot] 1a257e2e90
build(deps): bump glow from 0.7.1 to 0.7.2 (#493)
Bumps [glow](https://github.com/grovesNL/glow) from 0.7.1 to 0.7.2.
- [Release notes](https://github.com/grovesNL/glow/releases)
- [Commits](https://github.com/grovesNL/glow/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-21 19:32:43 -08:00
iceiix 72aec0c6a2
blocks: fix hier block shift (#489), add tests (#492)
* blocks: fix soul fire/soil, exclude from <1.13, fixing #489 

* blocks: add unit tests for #467 #469 #474
2021-01-20 17:07:27 -08:00
ice_iix d60a495425 deps: update getrandom, serde (#491, #490)
Bump getrandom to 0.2.2, closes #491
Bump serde to 1.0.120, closes #490
2021-01-20 15:29:06 -08:00