@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/level/block/CrafterBlock.java
|
||||
+++ b/net/minecraft/world/level/block/CrafterBlock.java
|
||||
@@ -39,6 +39,15 @@
|
||||
@@ -40,6 +40,15 @@
|
||||
import net.minecraft.world.phys.MovingObjectPositionBlock;
|
||||
import net.minecraft.world.phys.Vec3D;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
public class CrafterBlock extends BlockTileEntity {
|
||||
|
||||
public static final MapCodec<CrafterBlock> CODEC = simpleCodec(CrafterBlock::new);
|
||||
@@ -188,6 +197,13 @@
|
||||
@@ -189,6 +198,13 @@
|
||||
RecipeHolder<RecipeCrafting> recipeholder = (RecipeHolder) optional.get();
|
||||
ItemStack itemstack = ((RecipeCrafting) recipeholder.value()).assemble(craftinginput, worldserver.registryAccess());
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
if (itemstack.isEmpty()) {
|
||||
worldserver.levelEvent(1050, blockposition, 0);
|
||||
} else {
|
||||
@@ -226,7 +242,25 @@
|
||||
@@ -227,7 +243,25 @@
|
||||
ItemStack itemstack1 = itemstack.copy();
|
||||
|
||||
if (iinventory != null && (iinventory instanceof CrafterBlockEntity || itemstack.getCount() > iinventory.getMaxStackSize(itemstack))) {
|
||||
@@ -56,7 +56,7 @@
|
||||
ItemStack itemstack2 = itemstack1.copyWithCount(1);
|
||||
ItemStack itemstack3 = TileEntityHopper.addItem(crafterblockentity, iinventory, itemstack2, enumdirection.getOpposite());
|
||||
|
||||
@@ -237,7 +271,25 @@
|
||||
@@ -238,7 +272,25 @@
|
||||
itemstack1.shrink(1);
|
||||
}
|
||||
} else if (iinventory != null) {
|
||||
|
||||
Reference in New Issue
Block a user