Increase player speed #109
Unanswered
Squander12
asked this question in
Q&A
Replies: 1 comment 5 replies
-
You need to apply the code edits to the server too if you want to make the client & server not desync. Aside from that, if it's still too fast, you might need to disable the speed check in the server code or modify the values it uses. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I added boots that increase walking speed, in theory everything works, but when I enter the server and try to walk, the server moves me back and gets the following information:
Got position 1.5275054012421543, 79.0, 2.406983900200199
Expected 1.7577250298625335, 79.0, 2.5257922519494524
Client and server code in EntityPlayer
@OverRide
public void moveEntity(double x, double y, double z) {
ItemStack boots = inventory.armorInventory[0];
if(boots != null && boots.getItem() == Item.windBoots) {
x *= 1.9f;
z *= 1.9f;
}
Beta Was this translation helpful? Give feedback.
All reactions