Comments (2)
尝试写插件将bug前的未丢失的 translationKey 备份出来单独存一个 NBT 字段然后等出 BUG 后通过 listener 和 NBT API 回写到 NBT 里去修正,结果发现无论是同步添加回NBT还是异步添加回NBT都会被重置为 null,而且仅限于这一个字段会有这个问题,其他NBT字段均正常读写
如上图,备份出数据存成 backupData1 字段,然后尝试回写到 ShareTag 的 TranslationKey 中,失败,但 TranslationKey1 成功。
尝试了同步调用:
itemStack.setItemMeta(nbtItem.getItem().getItemMeta());
尝试了异步调用:
Bukkit.getScheduler().runTaskLater(this.plugin, () -> updateItemStackMeta(itemStack, nbtItem), 60);
ShareTag 的 TranslationKey 均会被重置成null
from catserver.
测试发现一个规律,玩家在第一次获取某个物品时(造成的点击事件)不会丢失shareTag,但第二次之后就会在点击物品时立即丢失
from catserver.
Related Issues (20)
- [1.16.5] Catserver与citizens2中的path设置寻路点不兼容缺nms方法导致崩服。
- [1.18.2] QuickShop插件无法正常使用
- [1.16.5] ModelEngine not working
- [1.18.2] PlaceholderAPI变量无效果
- [1.16.5] ItemsAdder v3.6.3 报错无法加载变量
- [1.18.2] 初次启动无法正常启动 HOT 2
- [1.18.2] 与TFC:TNG (群峦传说:次世代)不兼容?
- [1.18.2] MythicMobs 插件加载 RandomSpawner 后的 NoSuchMethodError HOT 1
- [1.12.2] “漏斗-堆肥桶-漏斗-箱子”结构出现问题
- [1.12.2] install
- [1.18.2] 设置玩家客户端时间出现问题
- [1.12.2] world generator
- [1.12.2] Tekkit 2 Modpack Gravisuit Classic, Gravitation Chestplate/Nuclear Gravitation Chestplate spam equip sound when equipped
- 1.16.5最新版本Jenkins构建失败 HOT 1
- [1.12.2] Quark crashes the server on startup.
- [1.18.2] 使用BC(lightfall)时候 开启BCconfig 开启 ip_forward: true spigot.yml bungeecord: true 时候 子服无法进入 HOT 2
- [1.12.2] Error deleting blocks
- [1.16.5] Chunks Loader mods don't work with CatServer
- [1.16.5] WorldGuard Flag deny-spawn entity
- [1.12.2] Unable to run MC Eternal on Catserver
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catserver.