1.21.4-pre3

This commit is contained in:
modmuss50 2024-11-27 18:08:27 +00:00
parent cc0fa2fec8
commit 1885ad74d1
4 changed files with 11 additions and 11 deletions
fabric-transfer-api-v1/src
main/java/net/fabricmc/fabric/mixin/transfer
testmod/java/net/fabricmc/fabric/test/transfer
gradle.properties

View file

@ -42,9 +42,9 @@ public abstract class AbstractFurnaceBlockEntityMixin extends LockableContainerB
@Shadow
protected DefaultedList<ItemStack> inventory;
@Shadow
int field_55576;
int cookingTimeSpent;
@Shadow
int cookTimeTotal;
int cookingTotalTime;
@Unique
private boolean fabric_suppressSpecialLogic = false;
@ -76,8 +76,8 @@ public abstract class AbstractFurnaceBlockEntityMixin extends LockableContainerB
boolean bl = !stack.isEmpty() && ItemStack.areItemsAndComponentsEqual(stack, itemStack);
if (!bl && this.world instanceof ServerWorld world) {
this.cookTimeTotal = getCookTime(world, (AbstractFurnaceBlockEntity) (Object) this);
this.field_55576 = 0;
this.cookingTotalTime = getCookTime(world, (AbstractFurnaceBlockEntity) (Object) this);
this.cookingTimeSpent = 0;
}
}
}

View file

@ -68,7 +68,7 @@ public class VanillaStorageTests {
InventoryStorage furnaceWrapper = InventoryStorage.of(furnace, null);
context.runAtTick(5, () -> {
if (accessor.getCookTime() <= 0) {
if (accessor.getCookingTimeSpent() <= 0) {
throw new GameTestException("Furnace should have started cooking.");
}
@ -78,7 +78,7 @@ public class VanillaStorageTests {
}
}
if (accessor.getCookTime() <= 0) {
if (accessor.getCookingTimeSpent() <= 0) {
throw new GameTestException("Furnace should still cook after simulation.");
}
@ -90,7 +90,7 @@ public class VanillaStorageTests {
transaction.commit();
}
if (accessor.getCookTime() != 0) {
if (accessor.getCookingTimeSpent() != 0) {
throw new GameTestException("Furnace should have reset cook time after being emptied.");
}

View file

@ -23,6 +23,6 @@ import net.minecraft.block.entity.AbstractFurnaceBlockEntity;
@Mixin(AbstractFurnaceBlockEntity.class)
public interface AbstractFurnaceBlockEntityAccessor {
@Accessor("field_55576")
int getCookTime();
@Accessor
int getCookingTimeSpent();
}

View file

@ -2,8 +2,8 @@ org.gradle.jvmargs=-Xmx2560M
org.gradle.parallel=true
version=0.110.0
minecraft_version=1.21.4-pre2
yarn_version=+build.1
minecraft_version=1.21.4-pre3
yarn_version=+build.2
loader_version=0.16.9
installer_version=1.0.1