This commit is contained in:
TheCrunchy committed 2023-07-30 14:56:18 +01:00
1 parent 72d3cdad85
commit 94b0296a29
6 files changed
+20 -10

No files matched your search

+6 -4
View File
@@ -86,10 +86,12 @@ public class ClickHandler implements Listener {
}
}
}
List<Block> Blocks = sphere(loc, proj.ExplodePower);
for (int i = 0; i < proj.BlocksToPlaceAmount; i++) {
Block replace = getRandomElement(Blocks);
replace.setType(Material.COBWEB);
if (event.getHitBlock() != null) {
List<Block> Blocks = sphere(event.getHitBlock().getLocation(), proj.ExplodePower);
for (int i = 0; i < proj.BlocksToPlaceAmount; i++) {
Block replace = getRandomElement(Blocks);
replace.setType(Material.COBWEB);
}
}
}
}