Changed limbo trips to never kill the player

Solves the player not getting inventory back, especially for special
slots.
This commit is contained in:
StevenRS11
2013-09-06 15:36:12 -04:00
parent 6512327ee8
commit cff13e9bb5
5 changed files with 46 additions and 44 deletions

View File

@@ -38,42 +38,10 @@ public class PlayerRespawnTracker implements IPlayerTracker
}
@Override
public void onPlayerRespawn(EntityPlayer player)
{
if(player.worldObj.provider.dimensionId==properties.LimboDimensionID)
{
if(!player.worldObj.isRemote && properties.LimboReturnsInventoryEnabled)
{
if(player.username!=null)
{
if(!mod_pocketDim.limboSpawnInventory.isEmpty()&&mod_pocketDim.limboSpawnInventory.containsKey(player.username))
{
for(EntityItem drop : mod_pocketDim.limboSpawnInventory.get(player.username))
{
if(drop.getEntityItem().getItem() instanceof ItemArmor)
{
}
player.inventory.addItemStackToInventory(drop.getEntityItem());
}
}
}
}
}
public void onPlayerRespawn(EntityPlayer player) {
// TODO Auto-generated method stub
}
}