Improved various typos

This commit is contained in:
thatsIch
2014-11-04 12:32:33 +01:00
parent fe7510d607
commit 542c1dcdbd
15 changed files with 56 additions and 57 deletions
@@ -94,17 +94,17 @@ public class StorageHelper
static class METeleporter extends Teleporter
{
final TelDestination dest;
final TelDestination destination;
public METeleporter(WorldServer par1WorldServer, TelDestination d) {
super( par1WorldServer );
dest = d;
destination = d;
}
@Override
public void placeInPortal(Entity par1Entity, double par2, double par4, double par6, float par8)
{
par1Entity.setLocationAndAngles( dest.x, dest.y, dest.z, par1Entity.rotationYaw, 0.0F );
par1Entity.setLocationAndAngles( destination.x, destination.y, destination.z, par1Entity.rotationYaw, 0.0F );
par1Entity.motionX = par1Entity.motionY = par1Entity.motionZ = 0.0D;
}
@@ -175,8 +175,8 @@ public class StorageHelper
// load the chunk!
WorldServer.class.cast( newWorld ).getChunkProvider().loadChunk( MathHelper.floor_double( link.x ) >> 4, MathHelper.floor_double( link.z ) >> 4 );
boolean difDest = newWorld != oldWorld;
if ( difDest )
boolean diffDestination = newWorld != oldWorld;
if ( diffDestination )
{
if ( player != null )
{
@@ -310,7 +310,7 @@ public class StorageHelper
transverseEdges( i, j, k, i + scaleX, j + scaleY, k + scaleZ, new TriggerUpdates( dst ) );
/*
* IChunkProvider cp = dest.getChunkProvider(); if ( cp instanceof ChunkProviderServer ) { ChunkProviderServer
* IChunkProvider cp = destination.getChunkProvider(); if ( cp instanceof ChunkProviderServer ) { ChunkProviderServer
* srv = (ChunkProviderServer) cp; srv.unloadAllChunks(); }
*
* cp.unloadQueuedChunks();