mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
Merge pull request #439 from jedk1/master
Fix players grabbing water through walls
This commit is contained in:
commit
625b2ae0f7
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ public abstract class WaterAbility extends ElementalAbility {
|
|||
|
||||
for (double i = 0; i <= range; i++) {
|
||||
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;
|
||||
} else if (isWaterbendable(player, null, block) && (!isPlant(block) || plantbending)) {
|
||||
if (TempBlock.isTempBlock(block)) {
|
||||
|
|
Loading…
Reference in a new issue