Fixed ignite deleting certain block

This commit is contained in:
Auxilor 2020-09-14 07:32:34 +01:00
parent 2d10a979cc
commit 62278ff6b7
2 changed files with 6 additions and 5 deletions

View File

@ -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.

View File

@ -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);
}
}
}