Working on server client

This commit is contained in:
StevenRS11
2013-10-16 17:17:46 -04:00
parent 2f98bf91e8
commit c08fa15f40
4 changed files with 19 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ public abstract class DimLink
protected DimLink(Point4D source, int linkType, int orientation)
{
if (linkType < LinkTypes.ENUM_MIN || linkType > LinkTypes.ENUM_MAX && linkType != LinkTypes.CLIENT_SIDE)
if ((linkType < LinkTypes.ENUM_MIN || linkType > LinkTypes.ENUM_MAX) && linkType != LinkTypes.CLIENT_SIDE)
{
throw new IllegalArgumentException("The specified link type is invalid.");
}

View File

@@ -267,7 +267,10 @@ public abstract class NewDimData
link.overwrite(linkType,orientation);
}
//Link created!
linkWatcher.onCreated(link.source);
if(linkType!=LinkTypes.CLIENT_SIDE)
{
linkWatcher.onCreated(link.source);
}
return link;
}

View File

@@ -386,7 +386,7 @@ public class PocketManager
private static NewDimData registerClientDimension(int dimensionID, int rootID)
{
// No need to raise events here since this code should only run on the client side
// No need to raise events heres since this code should only run on the client side
// getDimensionData() always handles root dimensions properly, even if the weren't defined before
// SenseiKiwi: I'm a little worried about how getDimensionData will raise
@@ -408,6 +408,12 @@ public class PocketManager
{
dimension = root;
}
if(dimension.isPocketDimension())
{
//Im registering pocket dims here. I *think* we can assume that if its a pocket and we are
//registering its dim data, we also need to register it with forge.
DimensionManager.registerDimension(dimensionID, mod_pocketDim.properties.PocketProviderID);
}
return dimension;
}