Artisan Worktables 1.12

Artisan Worktables 1.12

3M Downloads

"ArtisanIngredient cannot be cast to CTArtisanIngredient" crash

copygirl opened this issue ยท 1 comments

commented

Issue Description

Game crashes when trying to fill a partially filled bucket of clay from Hardcore Bytes Mod with more clay.

Related: #238

Steps To Reproduce

  • /give @p pyrotech:bucket_wood
  • /give @p clay_ball 64
  • Craft empty bucket with clay ball.
  • Place partially filled bucket with clay ball into any AW worktable.

Script

bucket_of_clay.zs

Crash Log

Full crash report: Here!

java.lang.ClassCastException: com.codetaylor.mc.artisanworktables.api.internal.recipe.ArtisanIngredient cannot be cast to com.codetaylor.mc.artisanworktables.modules.worktables.integration.crafttweaker.CTArtisanIngredient
	at com.codetaylor.mc.artisanworktables.modules.worktables.integration.crafttweaker.CTArtisanRecipe.getMarksShapeless(CTArtisanRecipe.java:321)
	at com.codetaylor.mc.artisanworktables.modules.worktables.integration.crafttweaker.CTArtisanRecipe.processRecipeFunction(CTArtisanRecipe.java:217)
	at com.codetaylor.mc.artisanworktables.modules.worktables.integration.crafttweaker.CTArtisanRecipe.getBaseOutput(CTArtisanRecipe.java:94)
	at com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWContainer.updateRecipeOutput(AWContainer.java:476)
	at com.codetaylor.mc.artisanworktables.modules.worktables.tile.spi.TileEntityBase.triggerContainerRecipeUpdate(TileEntityBase.java:202)
	at com.codetaylor.mc.artisanworktables.modules.worktables.tile.spi.TileEntityBase.func_189517_E_(TileEntityBase.java:441)
	at com.codetaylor.mc.artisanworktables.modules.worktables.tile.spi.TileEntityBase.func_189518_D_(TileEntityBase.java:428)
	at net.minecraft.server.management.PlayerChunkMapEntry.func_187273_a(PlayerChunkMapEntry.java:288)
	at net.minecraft.server.management.PlayerChunkMapEntry.func_187280_d(PlayerChunkMapEntry.java:250)
	at net.minecraft.server.management.PlayerChunkMap.func_72693_b(SourceFile:115)
	at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:227)
	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
	at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
	at java.lang.Thread.run(Thread.java:748)

Affected Versions / Used Mods

commented

Reproduced with:

recipes.addShapeless("test", <minecraft:diamond>,
    [ <minecraft:dirt>.marked("dirt"), <minecraft:clay_ball> ],
    function(out, ins, cInfo) { return ins.dirt; }, null);
  • Only occurs when a recipe function exists with at least one Ingredient
  • Confirmed mixture of CTArtisanIngredient and ArtisanIngredient is a normal occurrence for AW converted CrT recipes

Thanks for the thorough report!

Should be fixed in the next patch 1.23.3