@@ -26,7 +26,6 @@ class Script:
2626
2727 index : int = 0
2828 name : str = "UnknownScript"
29- can_render : bool = False
3029
3130 match_config = flat .MatchConfiguration ()
3231 field_info = flat .FieldInfo ()
@@ -193,10 +192,10 @@ def rendering_status_update(self, update: flat.RenderingStatus):
193192 """
194193 Called when the server sends a rendering status update for ANY bot or script.
195194
196- By default, this will update `self.can_render` if appropriate.
195+ By default, this will update `self.renderer. can_render` if appropriate.
197196 """
198197 if not update .is_bot and update .index == self .index :
199- self .can_render = update .status
198+ self .renderer . can_render = update .status
200199
201200 def update_rendering_status (
202201 self ,
@@ -207,7 +206,7 @@ def update_rendering_status(
207206 """
208207 Requests the server to update the status of the ability for this bot to render.
209208 Will be ignored if rendering has been set to AlwaysOff in the match settings.
210- If the status is successfully updated, the `self.rendering_status_update` method will be called which will update `self.can_render`.
209+ If the status is successfully updated, the `self.rendering_status_update` method will be called which will update `self.renderer. can_render`.
211210
212211 - `status`: `True` to enable rendering, `False` to disable.
213212 - `index`: The index of the bot to update. If `None`, uses the script's own index.
0 commit comments