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

提议,给SlimefunBlockData增加临时(不写入)cache功能 #1015

Open
m1919810 opened this issue Feb 5, 2025 · 0 comments
Open

提议,给SlimefunBlockData增加临时(不写入)cache功能 #1015

m1919810 opened this issue Feb 5, 2025 · 0 comments
Labels
🐞 Bug 抓虫子

Comments

@m1919810
Copy link

m1919810 commented Feb 5, 2025

问题描述

鉴于这个附属作者有时候会存很多奇形怪状的数据,而sfblockData只能存字符串,开发者需要在tick的过程中反复读取并parse这些数据(比如string转int)
而若是存储于自己提供的Map 则会可能因为粘液方块的花样移除方式而无法监听全部情况 造成缓存可能无法及时移除
我认为SlimefunBlockData应当提供一个tempData的map<String,Object> 在这里的元素将不会存储于数据库中,仅由附属作者自行维护

问题复现率

无法复现

复现步骤

abab

服务端类型

Paper

Minecraft 版本

1.21.x

Slimefun 版本

abab

其他插件信息

No response

补充信息

No response

@m1919810 m1919810 added the 🐞 Bug 抓虫子 label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug 抓虫子
Projects
None yet
Development

No branches or pull requests

1 participant