Skip to content

[Forge] 1.20.1 Mixin(s) using mojmap instead of srg #7

@Fealtous

Description

@Fealtous

@Mixin(value = FilterItemStack.class, remap = false)
public class MixinFilterItemStack {
@Inject(method = "of(Lnet/minecraft/world/item/ItemStack;)Lcom/simibubi/create/content/logistics/filter/FilterItemStack;",
at = @At("HEAD"), cancellable = true)
private static void onOf(ItemStack filter, CallbackInfoReturnable<FilterItemStack> cir) {
// Check if this is our shuffle filter
if (filter.getItem() == CreateShuffleFilter.SHUFFLE_FILTER.get()) {

Make sure your mixins are mapped properly, otherwise it will result in crashes such as the one below. May just need to enable remap in the annotation, not sure.

https://gnomebot.dev/paste/mclogs/ZnAccGJ

This issue was made on behalf of a user who came into the MinecraftForge support channels.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions