mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
1.21.4-pre3
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,6 @@ import net.minecraft.block.entity.AbstractFurnaceBlockEntity;
|
|||
|
||||
@Mixin(AbstractFurnaceBlockEntity.class)
|
||||
public interface AbstractFurnaceBlockEntityAccessor {
|
||||
@Accessor("field_55576")
|
||||
int getCookTime();
|
||||
@Accessor
|
||||
int getCookingTimeSpent();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue