Fixed door render issue finally

Signed-off-by: StevenRS11 <steven.r.stafford.ii.14@dartmouth.edu>
This commit is contained in:
StevenRS11
2013-03-22 00:58:55 -04:00
parent c812fafc52
commit f800a9a353
5 changed files with 49 additions and 34 deletions

View File

@@ -181,7 +181,7 @@ public class ItemRiftBlade extends itemDimDoor
{
link.linkOrientation= rotation;
dimHelper.instance.createLink(link);
System.out.println("doingup");
//System.out.println("doingup");
int ExitDimID= dimHelper.dimList.get(par2World.provider.dimensionId).exitDimLink.destDimID;
dimHelper.instance.createLink(link.locDimID, ExitDimID, x, y, z, x, y, z,rotation);
@@ -199,7 +199,8 @@ public class ItemRiftBlade extends itemDimDoor
placeDoorBlock(par2World, x, y, z, rotation, mod_pocketDim.transientDoor);
placeDoorBlock(par2World, x, y-1, z, rotation, mod_pocketDim.transientDoor);
}
else
{
@@ -213,7 +214,7 @@ public class ItemRiftBlade extends itemDimDoor
{
Boolean didFindThing=false;
MovingObjectPosition hit = this.getMovingObjectPositionFromPlayer(par3EntityPlayer.worldObj, par3EntityPlayer, false );
if(hit!=null)
if(hit!=null&&!par2World.isRemote)
{
if(par2World.getBlockId(hit.blockX, hit.blockY, hit.blockZ)==mod_pocketDim.blockRiftID)
{