Skip to content

Commit 5264393

Browse files
世界交互: fix: 导入 nbtlib 失败
1 parent fbab359 commit 5264393

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

前置_世界交互/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
from io import BytesIO
33
import time
44
import uuid
5-
from .structure import Structure
6-
from .safe_uuid import make_uuid_safe_string
75
from tooldelta import Frame, Plugin, utils, fmts, plugin_entry
86
from tooldelta.constants import PacketIDS
97
from 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(

前置_世界交互/datas.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"author": "SuperScript and Happy2018new",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "所有使用世界交互的插件的前置",
55
"limit_launcher": null,
66
"pre-plugins": {

0 commit comments

Comments
 (0)