Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Gut Cloner call and cloning...
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer committed Feb 14, 2016
1 parent 8ee9a84 commit acd96ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/thermos/ReverseCloner.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public static EntityPlayerMP clone(EntityPlayerMP player, boolean wasDeath) {
player.getGameProfile(), new ItemInWorldManager(player.worldObj));
shadowCopy.bukkitEntity = player.bukkitEntity;
shadowCopy.playerNetServerHandler = player.playerNetServerHandler;
shadowCopy.clonePlayer(player, true);
//shadowCopy.clonePlayer(player, true);
if (wasDeath && !player.worldObj.getGameRules().getGameRuleBooleanValue("keepInventory")) {
player.inventory.clearInventory(null, -1);
player.inventoryContainer = new ContainerPlayer(player.inventory, !player.worldObj.isRemote, player);
}
MinecraftForge.EVENT_BUS.post(new PlayerEvent.Clone(player, shadowCopy, wasDeath));
return shadowCopy;
//MinecraftForge.EVENT_BUS.post(new PlayerEvent.Clone(player, shadowCopy, wasDeath)); -- Thermos don't tell mods to throw the properties to the shadowCopy
return player;
}
}

1 comment on commit acd96ce

@sameer
Copy link
Member Author

@sameer sameer commented on acd96ce Feb 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deal with #100, #98

Please sign in to comment.