Fixed too much drunk-pushing in 1.9

This commit is contained in:
Sn0wStorm
2016-04-23 18:51:29 +02:00
parent 468b90be43
commit 0f38ef008f
3 changed files with 11 additions and 6 deletions
+8 -3
View File
@@ -229,8 +229,13 @@ public class BPlayer {
if (time == 0) {
// push him only to the side? or any direction
// like now
push.setX(Math.random() - 0.5);
push.setZ(Math.random() - 0.5);
if (P.use1_9) { // Pushing is way stronger in 1.9
push.setX((Math.random() - 0.5) / 2.0);
push.setZ((Math.random() - 0.5) / 2.0);
} else {
push.setX(Math.random() - 0.5);
push.setZ(Math.random() - 0.5);
}
player.setVelocity(push);
} else if (time < 0 && time > -10) {
// push him some more in the same direction
@@ -574,4 +579,4 @@ public class BPlayer {
return -getQuality() + 11;
}
}
}