-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
添加工作台项合成表崩服 #1150
Labels
Comments
THook(void, "?_loadHardcodedRecipes@Recipes@@AEAAXXZ", Recipes& recipes) {
original(recipes);
vector<string> shapeMatrix{"AAA","ABA","AAA",};
vector<Recipes::Type> types{
Recipes::Type("minecraft:stick", 'A', 1, 0),
Recipes::Type("minecraft:diamond", 'B', 1, 0)
};
vector<HashedString> craftingTags{ "crafting_table" };
auto item = ItemStack::create("minecraft:reinforced_deepslate");
recipes.addShapedRecipe("test::recipe", ItemInstance(*item), shapeMatrix, types, craftingTags, 2, nullptr);
} 虽然是BDS API问题,但是还是建议你可以试试以上代码是否工作 |
依旧不行,而且由于addShapedRecipeAPI变更,必须多放入一个参数 |
ShrBox
added
bug
Related to software malfunction
module: LiteLoader
priority: medium
Needs attention
labels
Mar 23, 2023
简单还原了一下RecipeUnlockingRequirement大小,自行查看bds新的注册逻辑,有问题重新打开 |
yqs112358
added a commit
that referenced
this issue
Mar 24, 2023
* add templates and update StaticVanillaBlocks (#1116) * fix queryEntities (#1123) * feat: adapt to 1.19.70 (#1126) * adapt to 1.19.70 * refactor: replace some direct offset with dAccess * fix: fix missing tick address * fix: fix crash caused by autoGenerate * fix: fix crash caused by autoGenerate * fix: static vanilla blocks (#1127) * Add nodiscard and tryUnwrap (#1128) * add defines * add tryUnwrap * Update OwnerStorageEntity.hpp * Update WeakStorageEntity.hpp * update * add nodiscard * update * fix: sendTextPacket, sendRawFormPacket and so on * refactor: replace PacketId which is using int with MinecraftPacketIds * refactor: remove built-in packet filter * fix: fix crash #1130 * chore: fix actions sha_short * refactor: add repository link * fix: fix `OwnerStorageEntity::tryUnwrap` crash * chore: fix actions sha_short * fix: fix some packet api bugs * fix: fix `ItemActor::getItemStack` crash * refactor: update MinecraftPacketIds * feat: #1112 (#1118) Co-authored-by: WangYneos <[email protected]> Co-authored-by: ShrBox <[email protected]> * feat: Python support for LLSE (#1134) * Add python source code and update ScriptX * Add some adaption code for python * Fix ScriptX cmakelist * Finish general python plugin package loader * Some fix about package loader * Finish baselib loading * Finish pydebug * Add crowdin processor * Update langpack * Fix compile * Update ScriptX * Update ScriptX * Finish python runtime configurations * No need to create site-packages in python root dir * Fix binary assets and uncompress code * Update langpack * Fix LiteLoaderBDS-CUI (misunderstand before) * Fix a crash in ScriptX * Update ScriptX to fix crash * Fix pydebug * Update ScriptX * Update ScriptX * Fix py debug * Add product files auto-copy * Finish pip install support * Fix plugin load in py * Add missing python libs * Fix python module search path * Small fix to loader * Update docs * feat: complete Ref.hpp & EntityId (#1133) * feat: add tryGetComponent * feat: complete MojangStyle smart pointers * feat: complete EntityId * fix: tryGetComponent * feat: support signal-file plugin of Py * build: fix ci not uploading LLSE Python * refactor: rollback sendTextPacket & sendRawFormPacket because not working * fix: add plugin source dir to sys.path * fix: fix added sys.path * fix: add __file__ to py env * fix: rename ll.export/import to ll.exports/imports * fix: update ScriptX to fix custom class registered scope * feat: add some common functions (#1138) * feat: add Hopper::isEntity & getCountNoCheck * feat: add Color::lerp & mix * refactor: release_notes * feat: adapt to 1.19.72 (#1143) * update header * Revert "refactor: rollback sendTextPacket & sendRawFormPacket because not working" This reverts commit fba5c4d. * Update Player.hpp * fix: try fix NetworkPacket --------- Co-authored-by: ShrBox <[email protected]> Co-authored-by: OEOTYAN <[email protected]> * chore: fix github actions on Create pre-release * chore: correct release notes * fix: fix nodejs & python's loader * fix: fix #1144 * fix: fix some small bugs in loader logic of py * fix: update scriptx to fix a problem * fix: fix tick event of LLSE * feat: add SetCurrentThreadDescriptions to help debug * fix: update ScriptX to fix main interpreter problem * fix: fix ScriptEngine linking error * fix: update ScriptX to fix random crash * fix: try fix #1150 * chore: update RELEASE_NOTES * fix Entity functions (#1148) * fix: fix enum error (#1145) * fix enum error * fix a logical error --------- Co-authored-by: OEOTYAN <[email protected]> Co-authored-by: qingyu <[email protected]> Co-authored-by: ShrBox <[email protected]> Co-authored-by: ShrBox <[email protected]> Co-authored-by: Tsubasa6848 <[email protected]> Co-authored-by: WangYneos <[email protected]> Co-authored-by: student_2333 <[email protected]> Co-authored-by: starkc <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
异常模块
LiteLoader (本体)
操作系统
Windows 11
LiteLoader 版本
LiteLoaderBDS 2.12.0-dev.0+954a36b
BDS 版本
Version 1.19.72.01(ProtocolVersion 575)
发生了什么?
这是一段可以运行的测试代码,将8个苹果合成强化的深版岩。
此时对A的类型并未定义,如果加一条Recipes::Type("minecraft:cobbled_deepslate", 'A', 1, 0)
这时就会造成崩服。(编译无错误,但是要注释未定义)
复现此问题的步骤
注释掉RecipeUnlockingRequirement.hpp的未定义行,再进行编译。
CrashDump_20230323_11-05-47.zip
有关的日志/输出
插件列表
The text was updated successfully, but these errors were encountered: