Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.

Commit 6007733

Browse files
committed
Added fix for /spawn command failing on coordinates without an explicit satellite
1 parent c52b77f commit 6007733

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

plugins/warpy_plugin/warpy_plugin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ def warp_player_to_player(self, from_string, to_string):
8383
self.protocol.send_chat_message(self.warp.__doc__)
8484

8585
def move_player_ship(self, protocol, location):
86-
satellite = int(location.pop())
86+
if len(location) == 5:
87+
satellite = 0
88+
else:
89+
satellite = int(location.pop())
8790
planet = int(location.pop())
8891
z = int(location.pop())
8992
y = int(location.pop())

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from plugin_manager import PluginManager, route, FatalPluginError
2121
from utility_functions import build_packet
2222

23-
VERSION = "1.2.1"
23+
VERSION = "1.2.2"
2424
TRACE = False
2525
TRACE_LVL = 9
2626
logging.addLevelName(9, "TRACE")

0 commit comments

Comments
 (0)