remove slot magic value for npcs
This commit is contained in:
parent
acc43e2d42
commit
e1fc81962a
59 changed files with 776 additions and 825 deletions
|
@ -882,7 +882,7 @@ public class Client implements IThreadListener {
|
|||
this.player.dropOneItem(this.ctrl());
|
||||
}
|
||||
else if(Bind.RENAME.isPressed()) {
|
||||
ItemStack stack = this.player.getCurrentEquippedItem();
|
||||
ItemStack stack = this.player.getHeldItem();
|
||||
if(stack != null)
|
||||
this.show(new GuiRename(-1, stack, null));
|
||||
}
|
||||
|
@ -1923,7 +1923,7 @@ public class Client implements IThreadListener {
|
|||
}
|
||||
else if((this.pointed != null && this.pointed.type == HitPosition.ObjectType.ENTITY && this.pointed.entity != null) || showPlayerInfo) {
|
||||
Entity entity = showPlayerInfo ? this.player : this.pointed.entity;
|
||||
ItemStack held = entity instanceof EntityLiving && ((EntityLiving)entity).getHeldItem() != null ? ((EntityLiving)entity).getHeldItem() : null;
|
||||
ItemStack held = entity instanceof EntityNPC && ((EntityNPC)entity).getHeldItem() != null ? ((EntityNPC)entity).getHeldItem() : null;
|
||||
|
||||
return
|
||||
(showPlayerInfo ? "Charakter: " : "Schaue auf: ") + EntityRegistry.getEntityString(entity) + " (" + entity.getId() + ")" + "\n" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue