Update CNPC+ to Support GeckoLib Mixin with Addon Classes

This commit is contained in:
Kam committed 2024-01-24 22:05:56 -05:00
1 parent 3c225f74db
commit fc34e0a40d
14 files changed
+96 -154

No files matched your search

@@ -1,11 +1,10 @@
package noppes.npcs.client;
import kamkeel.addon.GeckoAddonSupport;
import kamkeel.addon.GeckoAddon;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.boss.EntityDragon;
import net.minecraft.entity.passive.EntityChicken;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
import noppes.npcs.entity.EntityNPCInterface;
public class EntityUtil {
@@ -86,7 +85,7 @@ public class EntityUtil {
entity.setCurrentItemOrArmor(i, copied.getEquipmentInSlot(i));
}
GeckoAddonSupport.geckoModelCopy(copied, entity);
GeckoAddon.instance.geckoCopyData(copied, entity);
if(copied instanceof EntityNPCInterface && entity instanceof EntityNPCInterface){
EntityNPCInterface npc = (EntityNPCInterface) copied;