Rustic icon indicating copy to clipboard operation
Rustic copied to clipboard

Brewing barrel and TE Reservoir issue.

Open DennisCorp opened this issue 5 years ago • 3 comments

When filling a brewing barrel with liquid from a Thermal Expansion Reservoir (hardened) , the reservoir will revert back to a (Basic) level.

This has occurred while playing FTB Interactions v1.5.0,

The liquid successfully goes into the barrel, but the reservoir is dropped down to basic. The same occurs with a (resonant) level reservoir, it also reverts back to (basic)

I tested with Honey, apple juice and ironberry juice, all crushed in the crushing tub. The exact amount of fluid was in the reservoir for each attempt.

DennisCorp avatar Jun 03 '19 14:06 DennisCorp

I had this happen as well. It seems to be wiping the nbt data from the item as well, since I had a quality tools quality on the reservoir which disappeared.

I took a gif to show the issue: Image from Gyazo

Tmtravlr avatar Jul 11 '19 07:07 Tmtravlr

Still an issue with version 1.1.4 in August of 2020

TherminatorX avatar Aug 04 '20 17:08 TherminatorX

Met this issue on my own compiled binary.

https://github.com/the-realest-stu/Rustic/blob/5dcdc2b40c20c1627458924f6b010559cd72e379/src/main/java/rustic/common/tileentity/TileEntityBrewingBarrel.java#L269

@the-realest-stu Could you please replace all the lines in this file that cast a out ItemStack by using

ItemStack out = new ItemStack(in.getItem())

to

ItemStack out = in.copy()

?

new an ItemStack from Item.getItem() only gets its "default" item representation, extra data like damage, metadata or tags will be lost, using the Item.copy() method will return a full-sized copy of the original ItemStack, and in this case the bug will be fixed.

Prunoideae avatar Sep 11 '20 17:09 Prunoideae