mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-08-04 03:26:02 +00:00
Redo on fixing AirSweep going through blocks
This commit is contained in:
parent
5b7edaeb00
commit
374632a772
1 changed files with 5 additions and 4 deletions
|
@ -364,10 +364,11 @@ public class AirCombo implements ConfigLoadable {
|
|||
FireComboStream fstream = (FireComboStream) tasks.get(i);
|
||||
Location loc = fstream.getLocation();
|
||||
|
||||
if (!EarthMethods.isTransparentToEarthbending(player, loc.clone().add(0, 0.2, 0).getBlock())) {
|
||||
fstream.remove();
|
||||
remove();
|
||||
return;
|
||||
if (!EarthMethods.isTransparentToEarthbending(player, loc.getBlock())) {
|
||||
if (!EarthMethods.isTransparentToEarthbending(player, loc.clone().add(0, 0.2, 0).getBlock())) {
|
||||
fstream.remove();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (i % 3 == 0) {
|
||||
for (Entity entity : GeneralMethods.getEntitiesAroundPoint(loc, 2.5)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue