Merge pull request #255 from Kaloyan501/1.21.1

Fix parchment mappings so they are actually used and fix #251
This commit is contained in:
DrMangoTea
2025-11-03 20:01:07 +01:00
committed by GitHub
3 changed files with 17 additions and 14 deletions

View File

@@ -22,14 +22,10 @@ neoForge {
// Specify the version of NeoForge to use.
version = project.neo_version
parchment {
mappingsVersion = project.parchment_mappings_version
minecraftVersion = project.parchment_minecraft_version
}
// This line is optional. Access Transformers are automatically detected
// accessTransformers.add('src/main/resources/META-INF/accesstransformer.cfg')
// Default run configurations.
// These can be tweaked, removed, or duplicated as needed.
runs {

View File

@@ -14,8 +14,10 @@ neo_version=21.1.213
neo_version_range=[21,)
loader_version_range=[4,)
parchment_minecraft_version=1.21.5
parchment_mappings_version=2025.06.01
# The Minecraft version the Parchment version is for
neoForge.parchment.minecraftVersion=1.21.1
# The version of the Parchment mappings
neoForge.parchment.mappingsVersion=2024.11.17
mixin_version = 0.8.5
mixin_extras_version = 0.4.1

View File

@@ -14,6 +14,7 @@ import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.Component;
import net.minecraft.world.entity.item.ItemEntity;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.Vec3;
@@ -79,6 +80,9 @@ public class BlastFurnaceHatchBlockEntity extends SmartBlockEntity implements IH
public void dropItems(){
if(level.getBlockState(getBlockPos().below()).isAir()){
if (inventory.getItem(0).getItem() == Items.AIR){
return;
} else {
Vec3 dropVec = VecHelper.getCenterOf(worldPosition)
.add(0, -12 / 16f, 0);
ItemEntity dropped = new ItemEntity(level, dropVec.x, dropVec.y, dropVec.z, inventory.getItem(0).copy());
@@ -88,6 +92,7 @@ public class BlastFurnaceHatchBlockEntity extends SmartBlockEntity implements IH
inventory.setStackInSlot(0, ItemStack.EMPTY);
}
}
}
@Override
protected void read(CompoundTag compound, HolderLookup.Provider registries, boolean clientPacket) {