Skip to content
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

Default right click action of custom fishing rod does not work #167

Open
themg95 opened this issue Dec 6, 2024 · 3 comments
Open

Default right click action of custom fishing rod does not work #167

themg95 opened this issue Dec 6, 2024 · 3 comments

Comments

@themg95
Copy link

themg95 commented Dec 6, 2024

I have a PolymerItem that extends FishingRodItem but the default use action does not work, is this a polymer issue?

@Patbox
Copy link
Owner

Patbox commented Dec 8, 2024

Please show the code

@themg95
Copy link
Author

themg95 commented Dec 8, 2024

public class WebfishingRodItem extends FishingRodItem implements PolymerItem {
    public WebfishingRodItem(Settings settings) {
        super(settings);
    }

    @Override
    public Item getPolymerItem(ItemStack itemStack, @Nullable ServerPlayerEntity serverPlayerEntity) {
        return Items.FISHING_ROD;
    }

    @Override
    public int getEnchantability() {
        return 0;
    }
}

@Patbox
Copy link
Owner

Patbox commented Dec 13, 2024

Did you patch FishingBobberEntity? It might break due to it having hardcoded check for vanilla fishing rod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants