mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-02 22:23:08 +00:00
.
This commit is contained in:
1 parent
aa3a073b89
commit
d6143dc6ba
4 files changed
+2
-2
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -89,7 +89,7 @@ public class ClickHandler implements Listener {
|
|||||||
Snowball ball = (Snowball) snowball;
|
Snowball ball = (Snowball) snowball;
|
||||||
Player player = (Player) ball.getShooter();
|
Player player = (Player) ball.getShooter();
|
||||||
if (player != null) {
|
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();
|
Location loc = snowball.getLocation();
|
||||||
World world = event.getEntity().getWorld();
|
World world = event.getEntity().getWorld();
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public class SiegeEquipment implements Cloneable {
|
|||||||
public String EquipmentName = "Cannon";
|
public String EquipmentName = "Cannon";
|
||||||
public int XOffset = 7;
|
public int XOffset = 7;
|
||||||
public int YOffset = 0;
|
public int YOffset = 0;
|
||||||
public int PitchOffset = -90;
|
public int PitchOffset = 0;
|
||||||
public int MaxFuel = 5;
|
public int MaxFuel = 5;
|
||||||
public double PlacementOffsetY = 0;
|
public double PlacementOffsetY = 0;
|
||||||
public float VelocityPerFuel = 0.75f;
|
public float VelocityPerFuel = 0.75f;
|
||||||
|
|||||||
Reference in new issue
Block a user