mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-26 20:27:38 +01:00
Fixed ignite deleting certain block
This commit is contained in:
parent
2d10a979cc
commit
62278ff6b7
@ -10,6 +10,7 @@ import com.willfp.ecoenchants.util.NumberUtils;
|
||||
import org.apache.commons.lang.WordUtils;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.inventory.ItemFlag;
|
||||
@ -18,10 +19,7 @@ import org.bukkit.inventory.meta.EnchantmentStorageMeta;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.persistence.PersistentDataType;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* All methods and fields pertaining to showing players the enchantments on their items.
|
||||
|
@ -53,6 +53,9 @@ public class Ignite extends EcoEnchant {
|
||||
|
||||
assert face != null;
|
||||
|
||||
block.getRelative(face).setType(Material.FIRE);
|
||||
Block toIgnite = block.getRelative(face);
|
||||
if(toIgnite.getType().equals(Material.AIR)) {
|
||||
toIgnite.setType(Material.FIRE);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user