mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-14 02:34:12 +00:00
Fixed model selection gui not opening
This commit is contained in:
1 parent
f493fc3666
commit
afe2468ee7
1 file changed
+2
-1
@@ -2,6 +2,7 @@ package com.goodbird.npcgecko.mixin.impl;
|
||||
|
||||
import com.goodbird.npcgecko.client.gui.GuiStringSelection;
|
||||
import com.goodbird.npcgecko.client.gui.SubGuiModelAnimation;
|
||||
import com.goodbird.npcgecko.entity.EntityCustomModel;
|
||||
import com.goodbird.npcgecko.mixin.IDataDisplay;
|
||||
import kamkeel.addon.client.GeckoAddonClient;
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -39,7 +40,7 @@ public class MixinGeckoAddonClient {
|
||||
if(!supportEnabled)
|
||||
return;
|
||||
|
||||
if(EntityList.getEntityString(entity).equals("npcgecko.CustomModelEntity") || EntityList.getEntityString(entity).equals("Geckolib Model")){
|
||||
if(entity instanceof EntityCustomModel){
|
||||
creationScreen.addButton(new GuiNpcButton(202, creationScreen.guiLeft-60, creationScreen.guiTop+40, 180, 20, ((IDataDisplay)creationScreen.npc.display).getCustomModelData().getModel()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user