Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Mar 9, 2024
1 parent ebb598b commit 0d8640b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 29 deletions.
4 changes: 4 additions & 0 deletions changelog/1.2.16.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Create: Enchantment Industry 1.2.16

### Update
- Fix crash with fluid spouts
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx2G
# Mod Info
maven_group = plus.dragons.createenchantmentindustry
archives_base_name = create_enchantment_industry
mod_version = 1.2.15
mod_version = 1.2.16

minecraft_version = 1.20.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private static void canItemBeMended(Level world, ItemStack stack, CallbackInfoRe

@Inject(method = "getRequiredAmountForItem",
at = @At(value = "INVOKE",
target = "Lcom/simibubi/create/content/fluids/transfer/GenericItemFilling;getRequiredAmountForItem(Lnet/minecraft/world/level/Level;Lnet/minecraft/world/item/ItemStack;Lio/github/fabricators_of_create/porting_lib/util/FluidStack;)J"),
target = "Lcom/simibubi/create/content/fluids/transfer/GenericItemFilling;getRequiredAmountForItem(Lnet/minecraft/world/level/Level;Lnet/minecraft/world/item/ItemStack;Lio/github/fabricators_of_create/porting_lib/fluids/FluidStack;)J"),
cancellable = true)
private static void getRequiredXpAmountForItem(Level world, ItemStack stack, FluidStack availableFluid, CallbackInfoReturnable<Long> cir) {
int amount = MendingBySpout.getRequiredAmountForItem(world, stack, availableFluid);
Expand All @@ -32,7 +32,7 @@ private static void getRequiredXpAmountForItem(Level world, ItemStack stack, Flu

@Inject(method = "fillItem",
at = @At(value = "INVOKE",
target = "Lcom/simibubi/create/content/fluids/transfer/GenericItemFilling;fillItem(Lnet/minecraft/world/level/Level;JLnet/minecraft/world/item/ItemStack;Lio/github/fabricators_of_create/porting_lib/util/FluidStack;)Lnet/minecraft/world/item/ItemStack;"),
target = "Lcom/simibubi/create/content/fluids/transfer/GenericItemFilling;fillItem(Lnet/minecraft/world/level/Level;JLnet/minecraft/world/item/ItemStack;Lio/github/fabricators_of_create/porting_lib/fluids/FluidStack;)Lnet/minecraft/world/item/ItemStack;"),
cancellable = true)
private static void mendItem(Level world, long requiredAmount, ItemStack stack, FluidStack availableFluid, CallbackInfoReturnable<ItemStack> cir) {
ItemStack result = MendingBySpout.mendItem(world, (int) requiredAmount, stack, availableFluid);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,9 @@ private static void addOrdering(List orderings, String name, Item item, Item anc

try {
cls = Class.forName("com.simibubi.create.AllCreativeModeTabs$RegistrateDisplayItemsGenerator$ItemOrdering");
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}

try {
method = cls.getMethod(name, Item.class, Item.class);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}

try {
ordering = method.invoke(null, item, anchor);
} catch (InvocationTargetException | IllegalAccessException e) {
} catch (ClassNotFoundException | NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
throw new RuntimeException(e);
}

Expand Down
1 change: 0 additions & 1 deletion src/main/resources/create_enchantment_industry.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"FluidTankBlockMixin",
"ItemDrainBlockEntityAccessor",
"ItemDrainBlockMixin",
"OpenEndedPipeInvoker",
"PlayerMixin",
"SpoutBlockEntityAccessor",
"SpoutBlockMixin",
Expand Down

0 comments on commit 0d8640b

Please sign in to comment.