22from io import BytesIO
33import time
44import uuid
5- from .structure import Structure
6- from .safe_uuid import make_uuid_safe_string
75from tooldelta import Frame , Plugin , utils , fmts , plugin_entry
86from tooldelta .constants import PacketIDS
97from tooldelta .mc_bytes_packet .base_bytes_packet import BaseBytesPacket
@@ -17,7 +15,7 @@ class GameInteractive(Plugin):
1715 name = "前置-世界交互"
1816 author = "SuperScript and Happy2018new"
1917 description = "前置插件, 提供世界交互功能的数据包, etc."
20- version = (2 , 0 , 3 )
18+ version = (2 , 0 , 4 )
2119
2220 def __init__ (self , frame : Frame ):
2321 self .frame = frame
@@ -31,7 +29,7 @@ def __init__(self, frame: Frame):
3129 )
3230
3331 def on_def (self ):
34- global numpy , nbtlib , UnMarshalBufferToPythonNBTObject
32+ global numpy , nbtlib , Structure , make_uuid_safe_string , UnMarshalBufferToPythonNBTObject
3533 pip = self .GetPluginAPI ("pip" )
3634
3735 if 0 :
@@ -46,6 +44,8 @@ def on_def(self):
4644 from bedrockworldoperator .utils .unmarshalNBT import (
4745 UnMarshalBufferToPythonNBTObject ,
4846 )
47+ from .structure import Structure
48+ from .safe_uuid import make_uuid_safe_string
4949
5050 def on_inject (self ):
5151 self .frame .add_console_cmd_trigger (
0 commit comments