mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 22:22:10 +00:00
config loading fix
This commit is contained in:
1 parent
09a148b5bc
commit
e1f1f6a15d
5 files changed
+27
-24
No files matched your search
@@ -5,6 +5,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
@@ -12,6 +13,7 @@ import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
|
||||
public class SiegeEnginesUtil {
|
||||
|
||||
public static final ItemStack DEFAULT_ROCKET = new ItemStack(Material.FIREWORK_ROCKET);
|
||||
public static void UpdateEntityIdModel(Entity ent, int modelNumber, String WorldName) {
|
||||
if (ent instanceof LivingEntity) {
|
||||
@@ -54,4 +56,5 @@ public class SiegeEnginesUtil {
|
||||
public static boolean hasItem(Inventory inv, ItemStack m) {
|
||||
return inv.containsAtLeast(m, m.getAmount());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user