mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
parent
599ecf6426
commit
287006936a
Binary file not shown.
|
@ -91,10 +91,7 @@ public class FreezeMelt {
|
||||||
public static boolean canThaw(Block block) {
|
public static boolean canThaw(Block block) {
|
||||||
if (frozenblocks.containsKey(block)) {
|
if (frozenblocks.containsKey(block)) {
|
||||||
for (Player player : block.getWorld().getPlayers()) {
|
for (Player player : block.getWorld().getPlayers()) {
|
||||||
if (Methods.getBoundAbility(player) == null) {
|
if (Methods.getBoundAbility(player) != null && Methods.getBoundAbility(player).equalsIgnoreCase("OctopusForm")) {
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (Methods.getBoundAbility(player).equalsIgnoreCase("OctopusForm")) {
|
|
||||||
if (block.getLocation().distance(player.getLocation()) <= OctopusForm.radius + 2)
|
if (block.getLocation().distance(player.getLocation()) <= OctopusForm.radius + 2)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue