mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 01:42:18 +00:00
dont allow extraction on tempblocks
This commit is contained in:
parent
38ddefeb5a
commit
1f72980dc8
|
@ -1,17 +1,17 @@
|
|||
package com.projectkorra.projectkorra.earthbending.metal;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
|
||||
import com.projectkorra.projectkorra.GeneralMethods;
|
||||
import com.projectkorra.projectkorra.ability.MetalAbility;
|
||||
import com.projectkorra.projectkorra.attribute.Attribute;
|
||||
import com.projectkorra.projectkorra.util.TempBlock;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import com.projectkorra.projectkorra.GeneralMethods;
|
||||
import com.projectkorra.projectkorra.ability.MetalAbility;
|
||||
import com.projectkorra.projectkorra.attribute.Attribute;
|
||||
import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
|
||||
public class Extraction extends MetalAbility {
|
||||
|
||||
|
@ -42,7 +42,7 @@ public class Extraction extends MetalAbility {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!GeneralMethods.isRegionProtectedFromBuild(this, this.originBlock.getLocation())) {
|
||||
if (!GeneralMethods.isRegionProtectedFromBuild(this, this.originBlock.getLocation()) && !TempBlock.isTempBlock(this.originBlock)) {
|
||||
final Material material = this.originBlock.getType();
|
||||
Material type = null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue