Uncommented transportation code to the Promised Lands, deep was with my eclipse Libraries
This commit is contained in:
parent
0cef9ff663
commit
2d49784e68
2 changed files with 6 additions and 7 deletions
|
@ -70,7 +70,7 @@ public class BlockPromisedPortal extends Block
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@Override
|
@Override
|
||||||
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
|
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
|
||||||
{
|
{
|
||||||
if (par5Entity.ridingEntity == null && par5Entity.riddenByEntity == null)
|
if (par5Entity.ridingEntity == null && par5Entity.riddenByEntity == null)
|
||||||
|
@ -80,14 +80,13 @@ public class BlockPromisedPortal extends Block
|
||||||
EntityPlayerMP thePlayer = (EntityPlayerMP) par5Entity;
|
EntityPlayerMP thePlayer = (EntityPlayerMP) par5Entity;
|
||||||
if (par5Entity.dimension != BOPConfiguration.promisedLandDimID)
|
if (par5Entity.dimension != BOPConfiguration.promisedLandDimID)
|
||||||
{
|
{
|
||||||
//getConfigurationManager
|
thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, BOPConfiguration.promisedLandDimID, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(BOPConfiguration.promisedLandDimID)));
|
||||||
MinecraftServer.F()..transferPlayerToDimension(thePlayer, BOPConfiguration.promisedLandDimID, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(BOPConfiguration.promisedLandDimID)));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
thePlayer.mcServer..transferPlayerToDimension(thePlayer, 0, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(0)));
|
thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, 0, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(0)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class EntityEventHandler
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
/*@ForgeSubscribe
|
@ForgeSubscribe
|
||||||
public void fallingFromPromisedLand(LivingHurtEvent event)
|
public void fallingFromPromisedLand(LivingHurtEvent event)
|
||||||
{
|
{
|
||||||
if (event.source == DamageSource.outOfWorld && event.entityLiving.dimension == BOPConfiguration.promisedLandDimID)
|
if (event.source == DamageSource.outOfWorld && event.entityLiving.dimension == BOPConfiguration.promisedLandDimID)
|
||||||
|
@ -101,7 +101,7 @@ public class EntityEventHandler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
|
||||||
@ForgeSubscribe
|
@ForgeSubscribe
|
||||||
public void chunkEntered(EntityEvent.EnteringChunk event)
|
public void chunkEntered(EntityEvent.EnteringChunk event)
|
||||||
|
|
Loading…
Reference in a new issue