Twister915 / mcproto-rs

Minecraft Protocol in Rust
Apache License 2.0
111 stars 22 forks source link

VarInt doesn't take parameters #11

Open adambrangenberg opened 1 year ago

adambrangenberg commented 1 year ago

Hey, I just started reading through the 1.15 example to create an 1.8 protocol. I pasted it into my IDE, and it told me that VarInt doesn't take arguments. Do you know why, since it's the example from the repository?

image
Twister915 commented 1 year ago

Hey. I will check the example code. VarInt is a type, and the syntax is correct for building a value of that type. Maybe there's a function with the same name in scope?

adambrangenberg commented 1 year ago

Hey, I got it working the next day by cleaning up my project structure (it was messed up at that point), though I have an issue all the time that some macros are disabled randomly like in that image which I couldn't fix for a while now. I tried switching to nightly Rust, but this didn't help

image