mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 16:37:45 +00:00
Small Behavior Restorations
This commit is contained in:
1 parent
98c94bd406
commit
c2ad3ef015
2 files changed
+5
-2
No files matched your search
@@ -257,7 +257,10 @@ public class ClientTickHandler {
|
||||
|
||||
if (player == null || mc.theWorld == null)
|
||||
return;
|
||||
|
||||
|
||||
if (ClientHudManager.getInstance() == null || ClientHudManager.getInstance().getHudComponents() == null)
|
||||
return;
|
||||
|
||||
// Update compass
|
||||
HudComponent compass = ClientHudManager.getInstance()
|
||||
.getHudComponents().get(EnumHudComponent.QuestCompass);
|
||||
|
||||
@@ -317,7 +317,7 @@ public class RenderNPCHumanMale extends RenderNPCInterface {
|
||||
|
||||
Class<?> clazz = itemstack2.getItem().getClass();
|
||||
boolean pluginMod = itemstack2.getItem().getUnlocalizedName().contains("plug:");
|
||||
if (clazz.equals(ItemShield.class) || clazz.equals(ItemRotatedShield.class) || clazz.equals(ItemClaw.class))
|
||||
if (clazz.getSimpleName().equals("ItemShield") || clazz.getSimpleName().equals("ItemRotatedShield") || clazz.getSimpleName().equals("ItemClaw"))
|
||||
GL11.glTranslatef(0.30f, 0, 0f);
|
||||
|
||||
if (itemstack2.getItem() instanceof ItemBlock && (is3D || RenderBlocks.renderItemIn3d(Block.getBlockFromItem(itemstack2.getItem()).getRenderType()))) {
|
||||
|
||||
Reference in new issue
Block a user