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:
@@ -22,14 +22,10 @@ neoForge {
|
|||||||
// Specify the version of NeoForge to use.
|
// Specify the version of NeoForge to use.
|
||||||
version = project.neo_version
|
version = project.neo_version
|
||||||
|
|
||||||
parchment {
|
|
||||||
mappingsVersion = project.parchment_mappings_version
|
|
||||||
minecraftVersion = project.parchment_minecraft_version
|
|
||||||
}
|
|
||||||
|
|
||||||
// This line is optional. Access Transformers are automatically detected
|
// This line is optional. Access Transformers are automatically detected
|
||||||
// accessTransformers.add('src/main/resources/META-INF/accesstransformer.cfg')
|
// accessTransformers.add('src/main/resources/META-INF/accesstransformer.cfg')
|
||||||
|
|
||||||
|
|
||||||
// Default run configurations.
|
// Default run configurations.
|
||||||
// These can be tweaked, removed, or duplicated as needed.
|
// These can be tweaked, removed, or duplicated as needed.
|
||||||
runs {
|
runs {
|
||||||
|
|||||||
@@ -14,8 +14,10 @@ neo_version=21.1.213
|
|||||||
neo_version_range=[21,)
|
neo_version_range=[21,)
|
||||||
|
|
||||||
loader_version_range=[4,)
|
loader_version_range=[4,)
|
||||||
parchment_minecraft_version=1.21.5
|
# The Minecraft version the Parchment version is for
|
||||||
parchment_mappings_version=2025.06.01
|
neoForge.parchment.minecraftVersion=1.21.1
|
||||||
|
# The version of the Parchment mappings
|
||||||
|
neoForge.parchment.mappingsVersion=2024.11.17
|
||||||
|
|
||||||
mixin_version = 0.8.5
|
mixin_version = 0.8.5
|
||||||
mixin_extras_version = 0.4.1
|
mixin_extras_version = 0.4.1
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import net.minecraft.nbt.CompoundTag;
|
|||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.world.entity.item.ItemEntity;
|
import net.minecraft.world.entity.item.ItemEntity;
|
||||||
import net.minecraft.world.item.ItemStack;
|
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.entity.BlockEntityType;
|
||||||
import net.minecraft.world.level.block.state.BlockState;
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
import net.minecraft.world.phys.Vec3;
|
import net.minecraft.world.phys.Vec3;
|
||||||
@@ -79,13 +80,17 @@ public class BlastFurnaceHatchBlockEntity extends SmartBlockEntity implements IH
|
|||||||
public void dropItems(){
|
public void dropItems(){
|
||||||
|
|
||||||
if(level.getBlockState(getBlockPos().below()).isAir()){
|
if(level.getBlockState(getBlockPos().below()).isAir()){
|
||||||
Vec3 dropVec = VecHelper.getCenterOf(worldPosition)
|
if (inventory.getItem(0).getItem() == Items.AIR){
|
||||||
.add(0, -12 / 16f, 0);
|
return;
|
||||||
ItemEntity dropped = new ItemEntity(level, dropVec.x, dropVec.y, dropVec.z, inventory.getItem(0).copy());
|
} else {
|
||||||
dropped.setDefaultPickUpDelay();
|
Vec3 dropVec = VecHelper.getCenterOf(worldPosition)
|
||||||
dropped.setDeltaMovement(0, -.25f, 0);
|
.add(0, -12 / 16f, 0);
|
||||||
level.addFreshEntity(dropped);
|
ItemEntity dropped = new ItemEntity(level, dropVec.x, dropVec.y, dropVec.z, inventory.getItem(0).copy());
|
||||||
inventory.setStackInSlot(0, ItemStack.EMPTY);
|
dropped.setDefaultPickUpDelay();
|
||||||
|
dropped.setDeltaMovement(0, -.25f, 0);
|
||||||
|
level.addFreshEntity(dropped);
|
||||||
|
inventory.setStackInSlot(0, ItemStack.EMPTY);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user