fix lava bucket
This commit is contained in:
parent
601ede8c62
commit
100d2da62c
|
@ -1,4 +1,2 @@
|
|||
2.0.3-alpha:
|
||||
- Updated Steam particles
|
||||
- Improved Steam Engine Logics
|
||||
- Fix cogwheels' breaking particles
|
||||
- Fix lava bucket can be insert to burner with some way
|
|
@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx3G
|
|||
org.gradle.daemon=false
|
||||
|
||||
# mod version info
|
||||
mod_version = 2.0.3-alpha
|
||||
mod_version = 2.0.4-alpha
|
||||
minecraft_version = 1.18.2
|
||||
forge_version = 40.0.34
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@ import net.minecraft.world.level.block.state.BlockState;
|
|||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.item.crafting.RecipeType;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.network.Connection;
|
||||
import net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket;
|
||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||
import net.minecraft.world.level.block.entity.BlockEntityType;
|
||||
import net.minecraft.core.Direction;
|
||||
|
@ -49,8 +47,8 @@ public abstract class BurnerTileEntity extends SmartTileEntity implements IHaveG
|
|||
private ItemStackHandler inv = new ItemStackHandler() {
|
||||
|
||||
@Override
|
||||
public boolean isItemValid(int slot, ItemStack stack) {
|
||||
if (ForgeHooks.getBurnTime(stack, RecipeType.SMELTING) != 0) return true;
|
||||
public boolean isItemValid(int slot,ItemStack stack) {
|
||||
if (ForgeHooks.getBurnTime(stack, RecipeType.SMELTING) != 0&&stack.getContainerItem().isEmpty()) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue