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
|
@ -61,9 +61,10 @@ public class PocketManager
|
|||
@Override
|
||||
public void onCreated(ClientLinkData link)
|
||||
{
|
||||
Point4D source = link.point;
|
||||
NewDimData dimension = getDimensionData(source.getDimension());
|
||||
dimension.createLink(source, LinkType.CLIENT, 0, link.lock);
|
||||
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);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -71,7 +72,8 @@ public class PocketManager
|
|||
{
|
||||
Point4D source = link.point;
|
||||
NewDimData dimension = getDimensionData(source.getDimension());
|
||||
dimension.deleteLink(source.getX(), source.getY(), source.getZ());
|
||||
if (dimension.getLink(source.getX(),source.getY(),source.getZ()) != null)
|
||||
dimension.deleteLink(source.getX(), source.getY(), source.getZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue