mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
Fix players grabbing water through walls
This commit is contained in:
parent
3f78596809
commit
d7150ff2c4
|
@ -198,7 +198,7 @@ public abstract class WaterAbility extends ElementalAbility {
|
||||||
|
|
||||||
for (double i = 0; i <= range; i++) {
|
for (double i = 0; i <= range; i++) {
|
||||||
Block block = location.clone().add(vector.clone().multiply(i)).getBlock();
|
Block block = location.clone().add(vector.clone().multiply(i)).getBlock();
|
||||||
if (GeneralMethods.isRegionProtectedFromBuild(player, "WaterManipulation", location)) {
|
if (!isTransparent(player, block) || GeneralMethods.isRegionProtectedFromBuild(player, "WaterManipulation", location)) {
|
||||||
continue;
|
continue;
|
||||||
} else if (isWaterbendable(player, null, block) && (!isPlant(block) || plantbending)) {
|
} else if (isWaterbendable(player, null, block) && (!isPlant(block) || plantbending)) {
|
||||||
if (TempBlock.isTempBlock(block)) {
|
if (TempBlock.isTempBlock(block)) {
|
||||||
|
|
Loading…
Reference in a new issue