Skip to content

Commit

Permalink
Fix AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
olijeffers0n committed Mar 15, 2023
1 parent 58d9c05 commit 9a466bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rustplus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

__name__ = "rustplus"
__author__ = "olijeffers0n"
__version__ = "5.5.6"
__version__ = "5.5.7"
__support__ = "Discord: https://discord.gg/nQqJe8qvP8"
2 changes: 1 addition & 1 deletion rustplus/api/remote/camera/camera_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ async def get_entities_in_frame(self) -> List[Entity]:
if len(self._last_packets) == 0:
return []

return self._last_packets.get_last().entities
return self._last_packets.get_last().entities
2 changes: 1 addition & 1 deletion rustplus/api/remote/camera/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get(self, index=0) -> Any:
return self._queue[index]

def get_last(self) -> Any:
return self.get(-1)
return self._queue[-1]

def pop(self) -> Any:
return self._queue.pop(0)
Expand Down

0 comments on commit 9a466bd

Please sign in to comment.