Ladysnake / Locki

A library for controlling access to the player's inventory
GNU Lesser General Public License v3.0
4 stars 3 forks source link

Can't use Locki within another fabric mod #4

Closed AriSparks closed 2 years ago

AriSparks commented 2 years ago

I'm trying to use locki within another fabric mod I'm making for myself but whenever I do, I always get the error "The type net.minecraft.class[number] cannot be resolved. It is indirectly referenced from required .class files". When looking in the source code, the references to objects such as the PlayerEntity object are fine, but when built it sets it to "class[number]" (such as InventoryKeeper.get(class_1657)), which makes it unusable from within another mod as a referenceable library.

AriSparks commented 2 years ago

Error from using Locki in another mod eclipse_Z4FteDxetk

InventoryKepper.get method from within libraries eclipse_qiSfZAwv2E

InventoryKeeper.get method from within Locki source code eclipse_SvmU972rXg

AriSparks commented 2 years ago

Nevermind, this just seems to be a problem with Eclipse, as it works fine with IntelliJ.