Use the non-deprecated getBurnTime method

This commit is contained in:
Mrbysco 2024-05-25 16:49:37 +02:00
parent 60703b3004
commit a5172ea2e3

View file

@ -63,7 +63,7 @@ public class ContainerCoalGenerator extends AbstractContainerMenu {
//Other Slots in Inventory excluded
if (slot >= inventoryStart) {
//Shift from Inventory
if (CommonHooks.getBurnTime(newStack, null) > 0) {
if (newStack.getBurnTime(null) > 0) {
if (!this.moveItemStackTo(newStack, 0, 1, false)) {
return ItemStack.EMPTY;
}