apply folia modification to 1.21.7 nms

This commit is contained in:
Julian Krings 2025-07-19 22:53:06 +02:00
parent c3442ab2ce
commit fcbbd2135b
No known key found for this signature in database
GPG Key ID: 208C6E08C3B718D2

View File

@ -210,7 +210,7 @@ public class NMSBinding implements INMSBinding {
net.minecraft.nbt.CompoundTag tag = (net.minecraft.nbt.CompoundTag) convertToTag(map, 0, 64);
var level = ((CraftWorld) pos.getWorld()).getHandle();
var blockPos = new BlockPos(pos.getBlockX(), pos.getBlockY(), pos.getBlockZ());
J.s(() -> merge(level, blockPos, tag));
Iris.platform.getRegionScheduler().run(pos, () -> merge(level, blockPos, tag));
}
private void merge(ServerLevel level, BlockPos blockPos, net.minecraft.nbt.CompoundTag tag) {