Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
asanetargoss committed Jul 13, 2019
1 parent a86893c commit 0ee848e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public GuiBodyPartEditor(Minecraft mc, GuiAbstractMorph editor)
{
if (this.morphPicker == null)
{
IMorphing morphing = Morphing.get(this.mc.thePlayer);
IMorphing morphing = Morphing.get(this.mc.player);

this.morphPicker = new GuiCreativeMorphsMenu(mc, 6, null, morphing);
this.morphPicker.resizer().parent(this.area).set(0, 0, 0, 0).w(1, 0).h(1, 0);
Expand Down Expand Up @@ -189,7 +189,7 @@ public GuiBodyPartEditor(Minecraft mc, GuiAbstractMorph editor)
this.children.add(this.addPart, this.removePart, this.bodyParts, this.elements);

/* Inventory */
this.inventory = new GuiInventory(this, mc.thePlayer);
this.inventory = new GuiInventory(this, mc.player);

for (int i = 0; i < this.slots.length; i++)
{
Expand Down Expand Up @@ -249,7 +249,7 @@ public void setLimbs(Collection<String> limbs)

public void startEditing(BodyPartManager manager)
{
this.inventory.player = this.mc.thePlayer;
this.inventory.player = this.mc.player;
this.parts = manager;

this.bodyParts.setList(manager.parts);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void fromNBT(NBTTagCompound tag)
for (int i = 0, c = items.tagCount(); i < c; i++)
{
NBTTagCompound compound = items.getCompoundTagAt(i);
ItemStack stack = ItemStack.loadItemStackFromNBT(compound);
ItemStack stack = new ItemStack(compound);

this.slots[i] = stack;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public boolean setCurrentMorph(AbstractMorph morph, EntityPlayer player, boolean
this.morph.demorph(player);
}

this.setMorph(morph, player == null ? false : player.worldObj.isRemote);
this.setMorph(morph, player == null ? false : player.world.isRemote);

if (player != null)
{
Expand All @@ -267,7 +267,7 @@ public void demorph(EntityPlayer player)
this.morph.demorph(player);
}

this.setMorph(null, player == null ? false : player.worldObj.isRemote);
this.setMorph(null, player == null ? false : player.world.isRemote);
}

/**
Expand Down

0 comments on commit 0ee848e

Please sign in to comment.