mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
Combustion respects protected regions
This commit is contained in:
parent
d4fc085983
commit
29ae584e9c
|
@ -76,6 +76,10 @@ public class Combustion {
|
|||
range = defaultrange;
|
||||
damage = defaultdamage;
|
||||
}
|
||||
|
||||
if (Methods.isRegionProtectedFromBuild(player, "Combustion", Methods.getTargetedLocation(player, range))) {
|
||||
return;
|
||||
}
|
||||
|
||||
instances.put(player, this);
|
||||
cooldowns.put(player.getName(), System.currentTimeMillis());
|
||||
|
@ -101,6 +105,11 @@ public class Combustion {
|
|||
instances.remove(player);
|
||||
return;
|
||||
}
|
||||
|
||||
if (Methods.isRegionProtectedFromBuild(player, "Combustion", location)) {
|
||||
instances.remove(player);
|
||||
return;
|
||||
}
|
||||
|
||||
speedfactor = speed * (ProjectKorra.time_step / 1000.);
|
||||
ticks++;
|
||||
|
|
Loading…
Reference in a new issue