fix allowPermanentBlockBreakExploits config
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
--- a/net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java
|
||||
+++ b/net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java
|
||||
@@ -8,6 +_,7 @@
|
||||
import net.minecraft.core.Direction;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.NbtOps;
|
||||
+import net.minecraft.nbt.Tag;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.tags.BiomeTags;
|
||||
import net.minecraft.util.RandomSource;
|
||||
@@ -401,10 +_,13 @@
|
||||
BlockPos worldPos = this.getWorldPos(1, 0, i8);
|
||||
if (box.isInside(worldPos) && this.isInterior(level, 1, 0, i8, box)) {
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
--- a/net/minecraft/world/level/levelgen/structure/templatesystem/StructureTemplate.java
|
||||
+++ b/net/minecraft/world/level/levelgen/structure/templatesystem/StructureTemplate.java
|
||||
@@ -25,6 +_,7 @@
|
||||
import net.minecraft.nbt.IntTag;
|
||||
import net.minecraft.nbt.ListTag;
|
||||
import net.minecraft.nbt.NbtUtils;
|
||||
+import net.minecraft.nbt.Tag;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import net.minecraft.world.Clearable;
|
||||
@@ -54,6 +_,10 @@
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
import net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape;
|
||||
@@ -108,7 +100,7 @@
|
||||
if (!settings.isIgnoreEntities()) {
|
||||
this.placeEntities(
|
||||
- serverLevel,
|
||||
+ wrappedAccess, // CraftBukkit
|
||||
+ wrappedAccess, // CraftBukkit
|
||||
offset,
|
||||
settings.getMirror(),
|
||||
settings.getRotation(),
|
||||
@@ -143,15 +135,14 @@
|
||||
return NbtUtils.addCurrentDataVersion(tag);
|
||||
}
|
||||
|
||||
@@ -720,6 +_,13 @@
|
||||
@@ -720,6 +_,12 @@
|
||||
this.entityInfoList.add(new StructureTemplate.StructureEntityInfo(vec3, blockPos, compound1));
|
||||
}
|
||||
}
|
||||
+
|
||||
+ // CraftBukkit start - PDC
|
||||
+ Tag base = tag.get("BukkitValues");
|
||||
+ if (base instanceof CompoundTag) {
|
||||
+ this.persistentDataContainer.putAll((CompoundTag) base);
|
||||
+ if (tag.get("BukkitValues") instanceof CompoundTag compoundTag) {
|
||||
+ this.persistentDataContainer.putAll(compoundTag);
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user