diff --git a/rustplus/__init__.py b/rustplus/__init__.py index 21c360c..f203893 100644 --- a/rustplus/__init__.py +++ b/rustplus/__init__.py @@ -12,5 +12,5 @@ __name__ = "rustplus" __author__ = "olijeffers0n" -__version__ = "6.0.1" +__version__ = "6.0.2" __support__ = "Discord: https://discord.gg/nQqJe8qvP8" diff --git a/rustplus/identification/server_details.py b/rustplus/identification/server_details.py index a73272a..b719058 100644 --- a/rustplus/identification/server_details.py +++ b/rustplus/identification/server_details.py @@ -11,7 +11,7 @@ def __init__( secure: bool = False, ) -> None: self.ip = str(ip) - self.port = str(port) + self.port = str(port) if port is not None else port self.player_id = int(player_id) self.player_token = int(player_token) self.secure = secure diff --git a/rustplus/rust_api.py b/rustplus/rust_api.py index 398387f..9c524d2 100644 --- a/rustplus/rust_api.py +++ b/rustplus/rust_api.py @@ -392,7 +392,7 @@ async def set_entity_value(self, eid: int, value: bool = False) -> None: packet = await self._generate_request() set_value = AppSetEntityValue() set_value.value = value - packet.set_entity_value = AppEmpty() + packet.set_entity_value = set_value packet.entity_id = eid await self.ws.send_message(packet, True)