summaryrefslogtreecommitdiffstats
path: root/ProtoProxy/ProtoProxy.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-20 23:52:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-20 23:52:34 +0200
commit3ac98f3f26e4893c96a7dc149684bc3df15e753e (patch)
treebee427afdcb1a3eb1aab1bb531142878ce60c9e1 /ProtoProxy/ProtoProxy.cpp
parentDouble chests are formed correctly in all situations (meta is adjusted for the neighboring chest) (diff)
downloadcuberite-3ac98f3f26e4893c96a7dc149684bc3df15e753e.tar
cuberite-3ac98f3f26e4893c96a7dc149684bc3df15e753e.tar.gz
cuberite-3ac98f3f26e4893c96a7dc149684bc3df15e753e.tar.bz2
cuberite-3ac98f3f26e4893c96a7dc149684bc3df15e753e.tar.lz
cuberite-3ac98f3f26e4893c96a7dc149684bc3df15e753e.tar.xz
cuberite-3ac98f3f26e4893c96a7dc149684bc3df15e753e.tar.zst
cuberite-3ac98f3f26e4893c96a7dc149684bc3df15e753e.zip
Diffstat (limited to 'ProtoProxy/ProtoProxy.cpp')
-rw-r--r--ProtoProxy/ProtoProxy.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ProtoProxy/ProtoProxy.cpp b/ProtoProxy/ProtoProxy.cpp
index abc4a7606..0d61835e7 100644
--- a/ProtoProxy/ProtoProxy.cpp
+++ b/ProtoProxy/ProtoProxy.cpp
@@ -12,8 +12,10 @@
int main(int argc, char ** argv)
{
+ int ListenPort = (argc > 1) ? atoi(argv[1]) : 25564;
+ int ConnectPort = (argc > 2) ? atoi(argv[2]) : 25565;
cServer Server;
- int res = Server.Init(25565, 25564);
+ int res = Server.Init(ListenPort, ConnectPort);
if (res != 0)
{
printf("Server initialization failed: %d", res);