architectury / architectury-api

An intermediary api aimed at easing development of multiplatform mods.
https://discord.architectury.dev/
GNU Lesser General Public License v3.0
315 stars 56 forks source link

Can't place bucketable entities in forge module #431

Open finallion opened 1 year ago

finallion commented 1 year ago

I'm using the multiloader setupin two different projects and noticed that I can't place entites in a bucket, like tropical fish or axolotl. I have nothing in code that should affect this, and to be honest I don't know if it is an issue with Architectury. I encountered the issue only when using forge inside architectury.

When placing in the multiloader setup, this method returns false, while in a native forge enviroment, it skips it and runs the logic to place the entity in the world.

In BucketItem public boolean emptyContents(@Nullable PlayerEntity arg, World arg2, BlockPos arg3, @Nullable BlockHitResult arg4, @Nullable ItemStack container) { if (!(this.fluid instanceof FlowableFluid)) { return false; } ... }

This happens only in the devolpment enviroment. When the forge mod is built, its fine.

minecraft_version=1.20.1 architectury_version=9.1.10 forge_version=1.20.1-47.1.3 yarn_mappings=1.20.1+build.9:v2