mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
.
This commit is contained in:
1 parent
aa3a073b89
commit
d6143dc6ba
4 files changed
+2
-2
No files matched your search
@@ -89,7 +89,7 @@ public class ClickHandler implements Listener {
|
||||
Snowball ball = (Snowball) snowball;
|
||||
Player player = (Player) ball.getShooter();
|
||||
if (player != null) {
|
||||
player.sendMessage("Distance to impact: " + player.getLocation().distance(ball.getLocation()));
|
||||
player.sendMessage("Distance to impact: " + String.format("%.2f",player.getLocation().distance(ball.getLocation())));
|
||||
}
|
||||
Location loc = snowball.getLocation();
|
||||
World world = event.getEntity().getWorld();
|
||||
|
||||
@@ -42,7 +42,7 @@ public class SiegeEquipment implements Cloneable {
|
||||
public String EquipmentName = "Cannon";
|
||||
public int XOffset = 7;
|
||||
public int YOffset = 0;
|
||||
public int PitchOffset = -90;
|
||||
public int PitchOffset = 0;
|
||||
public int MaxFuel = 5;
|
||||
public double PlacementOffsetY = 0;
|
||||
public float VelocityPerFuel = 0.75f;
|
||||
|
||||
Reference in new issue
Block a user