This commit is contained in:
TheCrunchy committed 2023-08-10 19:42:29 +01:00
1 parent 54a754b4e7
commit 04ac406117
5 files changed
+2 -2

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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;
+1 -1
View File
@@ -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);