More fixes, more features

Fixed Player & Block Ammunition-Scanning
Now correctly copies firework rocket-item-data to the launched projectiles
Additionally fixed default-config generation, and made CLOCK(s) the control item as opposed to compasses.
This commit is contained in:
C_Corp2002 authored and GitHub committed 2024-01-09 01:02:06 -05:00
1 parent a76a7b2cfb
commit ed8af21be6
6 files changed
+135 -27

No files matched your search

@@ -3,6 +3,7 @@ package com.github.alathra.siegeengines;
import java.util.concurrent.TimeUnit;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.inventory.Inventory;
@@ -11,7 +12,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) {
LivingEntity liv = (LivingEntity) ent;