bugfixes
Dieser Commit ist enthalten in:
Ursprung
ddfba678be
Commit
0eef172b86
@ -18,7 +18,7 @@ public class ShieldListener implements Listener {
|
||||
|
||||
double radius = 2.5D;
|
||||
double multiplyer = 1.1D;
|
||||
float height = 0.8F;
|
||||
float height = 1.0F;
|
||||
|
||||
@EventHandler
|
||||
public void handlePlayerMove(PlayerMoveEvent event) {
|
||||
@ -46,7 +46,7 @@ public class ShieldListener implements Listener {
|
||||
double y = location.getY() - playerLocation.getY();
|
||||
double z = location.getZ() - playerLocation.getZ();
|
||||
|
||||
entityPlayer.setVelocity(new Vector(x, y, z).multiply(multiplyer).add(new Vector(0.0F, height, 0.0F)));
|
||||
entityPlayer.setVelocity(new Vector(x, y, z).multiply(multiplyer)/*.add(new Vector(0.0F, height, 0.0F))*/);
|
||||
}
|
||||
} else {
|
||||
for(Entity entity : nearbyEntities) {
|
||||
@ -67,7 +67,7 @@ public class ShieldListener implements Listener {
|
||||
double y = playerLocation.getY() - location.getY();
|
||||
double z = playerLocation.getZ() - location.getZ();
|
||||
|
||||
player.setVelocity(new Vector(x, y, z).multiply(multiplyer).add(new Vector(0.0F, height, 0.0F)));
|
||||
player.setVelocity(new Vector(x, y, z).multiply(multiplyer)/*.add(new Vector(0.0F, height, 0.0F))*/);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren