|
@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.
Create-ShuffleFilter/src/main/java/com/agent772/createshufflefilter/mixins/MixinFilterItemStack.java
Lines 13 to 20 in 7e11674
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.