mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 01:42:18 +00:00
some fixup for last commit
This commit is contained in:
parent
0ad0a544a3
commit
dae0f19fcc
|
@ -95,8 +95,6 @@ import java.util.*;
|
|||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
import static com.projectkorra.projectkorra.ability.ElementalAbility.isAir;
|
||||
|
||||
public class GeneralMethods {
|
||||
|
||||
// Represents PlayerName, previously checked blocks, and whether they were true or false
|
||||
|
|
|
@ -149,7 +149,7 @@ public class PKListener implements Listener {
|
|||
if (ElementalAbility.isLava(fromblock)) {
|
||||
event.setCancelled(!EarthPassive.canFlowFromTo(fromblock, toblock));
|
||||
} else if (ElementalAbility.isWater(fromblock)) {
|
||||
event.setCancelled(ElementalAbility.isAir(toblock.getType()));
|
||||
event.setCancelled(WaterBubble.isAir(toblock));
|
||||
if (!event.isCancelled()) {
|
||||
event.setCancelled(!WaterManipulation.canFlowFromTo(fromblock, toblock));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue