StellarWind22 / Fabric-Shield-Lib

Library for easily adding new shields, shield enchantments, and enabling you to enchant shields in general without worry of conflictions.
https://www.curseforge.com/minecraft/mc-mods/fabric-shield-lib
GNU Lesser General Public License v2.1
40 stars 19 forks source link

Tag Issue - 1.7 - Fabric 1.19.2 #143

Closed xR4YM0ND closed 11 months ago

xR4YM0ND commented 1 year ago

[Worker-Main-3/ERROR]: Couldn't load tag c:shields as it is missing following references: fabricshieldlib:fabric_shield (from Fabric Shield Lib), fabricshieldlib:fabric_banner_shield (from Fabric Shield Lib) [Worker-Main-3/ERROR]: Couldn't load tag c:tools as it is missing following references: #c:shields (from Porting Lib Tags) [Worker-Main-3/ERROR]: Couldn't load tag bookshelf:shields as it is missing following references: #c:shields (from Bookshelf)

latest.log

LonelyBard commented 1 year ago

I also have this error

CringeStar commented 1 year ago

Looking at the log, it seems this error is happening with many other tags. Does this occur when the mod is loaded by itself?

xR4YM0ND commented 1 year ago

Only happens with new version

The other tags in this log is a fabric seasons / chipped problem

I will try this standalone

xR4YM0ND commented 1 year ago

Its not happening when standalone (Shield lib + Fabric API) only happens with some of the mods in our pack ... but idk which

xR4YM0ND commented 1 year ago

Never mind ... it happens even with Shield Lib & Fabric API I forgot to load in a world ^^

latest.log

Globox1997 commented 1 year ago

This is a simple issue with https://github.com/StellarWind22/Fabric-Shield-Lib/blob/1.19.2/src/main/java/com/github/crimsondawn45/fabricshieldlib/initializers/FabricShieldLib.java#L86. These two default items which fabric shield lib initializes only in development environment are in the c:shields tag. Since they exist only in dev env, in prod env the tag will cry for having non existing items in it.

CringeStar commented 1 year ago

This is a simple issue with https://github.com/StellarWind22/Fabric-Shield-Lib/blob/1.19.2/src/main/java/com/github/crimsondawn45/fabricshieldlib/initializers/FabricShieldLib.java#L86. These two default items which fabric shield lib initializes only in development environment are in the c:shields tag. Since they exist only in dev env, in prod env the tag will cry for having non existing items in it.

Yeah, that's what I initially suspected. The test items are in the tag for testing purposes, but I guess we could remove them to fix this.

xR4YM0ND commented 1 year ago

Will this get fixed in the next update?

CringeStar commented 1 year ago

Yes, this should be fixed in the next version.

xR4YM0ND commented 1 year ago

any updates on this?

CringeStar commented 1 year ago

I've wanted to push out a fix for this with the next update, but I want to resolve #142 along sith this, but there's a bit of a hold on that issue.

CringeStar commented 11 months ago

Fixed in 1.7.1, releasing tomorrow