Fixed SSP- stop the network code from doubling up adds/deletes
This commit is contained in:
parent
af0d1450a4
commit
1464638fff
1 changed files with 6 additions and 4 deletions
|
@ -63,6 +63,7 @@ public class PocketManager
|
|||
{
|
||||
Point4D source = link.point;
|
||||
NewDimData dimension = getDimensionData(source.getDimension());
|
||||
if (dimension.getLink(source.getX(), source.getY(), source.getZ()) == null)
|
||||
dimension.createLink(source, LinkType.CLIENT, 0, link.lock);
|
||||
}
|
||||
|
||||
|
@ -71,6 +72,7 @@ public class PocketManager
|
|||
{
|
||||
Point4D source = link.point;
|
||||
NewDimData dimension = getDimensionData(source.getDimension());
|
||||
if (dimension.getLink(source.getX(),source.getY(),source.getZ()) != null)
|
||||
dimension.deleteLink(source.getX(), source.getY(), source.getZ());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue