From 41271396b9a90679944c6b15d62c1ae2dd6dca9b Mon Sep 17 00:00:00 2001 From: olijeffers0n <69084614+olijeffers0n@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:10:04 +0100 Subject: [PATCH] Bug Fixes --- rustplus/__init__.py | 2 +- rustplus/identification/server_details.py | 2 +- rustplus/rust_api.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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)