Uncommented transportation code to the Promised Lands, deep was with my eclipse Libraries

This commit is contained in:
Adubbz 2013-07-02 18:45:52 +10:00
parent 0cef9ff663
commit 2d49784e68
2 changed files with 6 additions and 7 deletions

View File

@ -70,7 +70,7 @@ public class BlockPromisedPortal extends Block
return false;
}
/*@Override
@Override
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
{
if (par5Entity.ridingEntity == null && par5Entity.riddenByEntity == null)
@ -80,14 +80,13 @@ public class BlockPromisedPortal extends Block
EntityPlayerMP thePlayer = (EntityPlayerMP) par5Entity;
if (par5Entity.dimension != BOPConfiguration.promisedLandDimID)
{
//getConfigurationManager
MinecraftServer.F()..transferPlayerToDimension(thePlayer, BOPConfiguration.promisedLandDimID, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(BOPConfiguration.promisedLandDimID)));
thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, BOPConfiguration.promisedLandDimID, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(BOPConfiguration.promisedLandDimID)));
}
else
{
thePlayer.mcServer..transferPlayerToDimension(thePlayer, 0, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(0)));
thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, 0, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(0)));
}
}
}
}*/
}
}

View File

@ -85,7 +85,7 @@ public class EntityEventHandler
}
}*/
/*@ForgeSubscribe
@ForgeSubscribe
public void fallingFromPromisedLand(LivingHurtEvent event)
{
if (event.source == DamageSource.outOfWorld && event.entityLiving.dimension == BOPConfiguration.promisedLandDimID)
@ -101,7 +101,7 @@ public class EntityEventHandler
}
}
}
}*/
}
@ForgeSubscribe
public void chunkEntered(EntityEvent.EnteringChunk event)