Allow client research

This commit is contained in:
Anuken
2020-12-05 21:24:27 -05:00
parent f9024e5500
commit 29fe5dab06

View File

@@ -172,16 +172,6 @@ public class ResearchDialog extends BaseDialog{
}); });
} }
@Override
public Dialog show(){
if(net.client()){
ui.showInfo("@research.multiplayer");
return this;
}
return super.show();
}
void treeLayout(){ void treeLayout(){
float spacing = 20f; float spacing = 20f;
LayoutNode node = new LayoutNode(root, null); LayoutNode node = new LayoutNode(root, null);
@@ -439,6 +429,14 @@ public class ResearchDialog extends BaseDialog{
void unlock(TechNode node){ void unlock(TechNode node){
node.content.unlock(); node.content.unlock();
//unlock parent nodes in multiplayer.
TechNode parent = node.parent;
while(parent != null){
parent.content.unlock();
parent = parent.parent;
}
checkNodes(root); checkNodes(root);
hoverNode = null; hoverNode = null;
treeLayout(); treeLayout();