mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-02 14:38:55 +00:00
.
This commit is contained in:
1 parent
54a754b4e7
commit
04ac406117
5 files changed
+2
-2
No files matched your search
@@ -25,7 +25,7 @@ public class ExplosiveProjectile implements CrunchProjectile {
|
||||
public Boolean PlaceBlocks = false;
|
||||
public Material BlockToPlace = Material.COBWEB;
|
||||
public int BlocksToPlaceAmount = 3;
|
||||
public int ExplodePower = 2;
|
||||
public float ExplodePower = 2;
|
||||
public float Inaccuracy = 0.3f;
|
||||
public int ProjectilesCount = 1;
|
||||
public Boolean DelayedFire = false;
|
||||
|
||||
@@ -113,7 +113,7 @@ public class ClickHandler implements Listener {
|
||||
}
|
||||
}
|
||||
if (event.getHitBlock() != null) {
|
||||
List<Block> Blocks = sphere(event.getHitBlock().getLocation(), proj.ExplodePower);
|
||||
List<Block> Blocks = sphere(event.getHitBlock().getLocation(), (int) proj.ExplodePower);
|
||||
for (int i = 0; i < proj.BlocksToPlaceAmount; i++) {
|
||||
Block replace = getRandomElement(Blocks);
|
||||
replace.setType(Material.COBWEB);
|
||||
|
||||
Reference in new issue
Block a user