generated from Slimefun/Addon-Template
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from JustAHuman-xD/fix/aura-skills-regions
[Fix] Aura Skills not recognizing Wand modified Blocks
- Loading branch information
Showing
5 changed files
with
36 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/me/gallowsdove/foxymachines/utils/AuraSkillsCompat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package me.gallowsdove.foxymachines.utils; | ||
|
||
import dev.aurelium.auraskills.api.AuraSkillsBukkitProvider; | ||
import dev.aurelium.auraskills.api.region.Regions; | ||
import org.bukkit.block.Block; | ||
|
||
public class AuraSkillsCompat { | ||
public static void addPlacedBlock(Block block) { | ||
Regions regions = AuraSkillsBukkitProvider.getInstance().getRegions(); | ||
if (regions != null) { | ||
regions.addPlacedBlock(block); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters