Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLSE中获取漏斗的容器内所有物品对象报错 #935

Closed
FBQingYi opened this issue Dec 6, 2022 · 6 comments
Closed

LLSE中获取漏斗的容器内所有物品对象报错 #935

FBQingYi opened this issue Dec 6, 2022 · 6 comments
Labels
bug Related to software malfunction priority: high Needs prompt action
Milestone

Comments

@FBQingYi
Copy link

FBQingYi commented Dec 6, 2022

异常模块

ScriptEngine (脚本引擎)

操作系统

Windows 10

LiteLoader 版本

2.9.0-beta-1

BDS 版本

1.19.50

发生了什么?

在漏斗的容器对象使用ct.getAllItems()时报错

复现此问题的步骤

mc.listen("onUseItemOn",(player,item,block,side,pos)=>{
log(block.hasContainer())
log(block.getContainer().getAllItems())
})
然后打开一个漏斗

有关的日志/输出

12:56:25 ERROR [LiteLoader] C++ Uncaught Exception Detected!
12:56:25 ERROR [LiteLoader] SEH_UNKNOW_ERROR
12:56:25 ERROR [LiteLoader] [failed to obtain stacktrace]
12:56:25 ERROR [LiteLoader] In API: ContainerClass::getAllItems
12:56:25 ERROR [LiteLoader] In Plugin: 2

插件列表

No response

@Yuisyuu
Copy link

Yuisyuu commented Dec 6, 2022

有没有可能,issue可以修改标题(

@Jasonzyt Jasonzyt changed the title LSSE中获取漏斗的容器内所有物品对象报错 LLSE中获取漏斗的容器内所有物品对象报错 Dec 6, 2022
@ShrBox ShrBox added bug Related to software malfunction status: to do priority: high Needs prompt action labels Dec 6, 2022
@Yuisyuu
Copy link

Yuisyuu commented Dec 7, 2022

ERROR [LiteLoader] C++ Uncaught Exception Detected!
ERROR [LiteLoader] SEH_UNKNOW_ERROR
ERROR [LiteLoader] [failed to obtain stacktrace]
ERROR [LiteLoader] In API: ContainerClass::getSize
ERROR [LiteLoader] C++ Uncaught Exception Detected!
ERROR [LiteLoader] SEH_UNKNOW_ERROR
ERROR [LiteLoader] [failed to obtain stacktrace]
ERROR [LiteLoader] In API: ContainerClass::removeAllItems

@quizhizhe
Copy link
Collaborator

漏斗是有物品的吗?

@FBQingYi
Copy link
Author

FBQingYi commented Dec 7, 2022

漏斗是有物品的吗?

有无都报错

@quizhizhe
Copy link
Collaborator

hasContainer()返回true?

@FBQingYi
Copy link
Author

FBQingYi commented Dec 7, 2022

hasContainer()返回true?


image

ShrBox added a commit that referenced this issue Dec 7, 2022
@ShrBox ShrBox closed this as completed Dec 7, 2022
@Jasonzyt Jasonzyt added this to the 2.9.0 milestone Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Related to software malfunction priority: high Needs prompt action
Development

No branches or pull requests

5 participants