@@ -1,17 +1,17 @@
|
||||
--- a/net/minecraft/world/level/block/BlockJukeBox.java
|
||||
+++ b/net/minecraft/world/level/block/BlockJukeBox.java
|
||||
@@ -62,7 +62,13 @@
|
||||
TileEntity tileentity = generatoraccess.getBlockEntity(blockposition);
|
||||
|
||||
@@ -67,7 +67,13 @@
|
||||
if (tileentity instanceof TileEntityJukeBox) {
|
||||
- ((TileEntityJukeBox) tileentity).setRecord(itemstack.copy());
|
||||
TileEntityJukeBox tileentityjukebox = (TileEntityJukeBox) tileentity;
|
||||
|
||||
- tileentityjukebox.setRecord(itemstack.copy());
|
||||
+ // CraftBukkit start - There can only be one
|
||||
+ itemstack = itemstack.copy();
|
||||
+ if (!itemstack.isEmpty()) {
|
||||
+ itemstack.setCount(1);
|
||||
+ }
|
||||
+ ((TileEntityJukeBox) tileentity).setRecord(itemstack);
|
||||
+ tileentityjukebox.setRecord(itemstack);
|
||||
+ // CraftBukkit end
|
||||
tileentityjukebox.playRecord();
|
||||
generatoraccess.setBlock(blockposition, (IBlockData) iblockdata.setValue(BlockJukeBox.HAS_RECORD, true), 2);
|
||||
generatoraccess.gameEvent(GameEvent.BLOCK_CHANGE, blockposition, GameEvent.a.of(entity, iblockdata));
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/net/minecraft/world/level/block/entity/TileEntityEnderChest.java
|
||||
+++ b/net/minecraft/world/level/block/entity/TileEntityEnderChest.java
|
||||
@@ -11,7 +11,7 @@
|
||||
public class TileEntityEnderChest extends TileEntity implements LidBlockEntity {
|
||||
|
||||
private final ChestLidController chestLidController = new ChestLidController();
|
||||
- private final ContainerOpenersCounter openersCounter = new ContainerOpenersCounter() {
|
||||
+ public final ContainerOpenersCounter openersCounter = new ContainerOpenersCounter() {
|
||||
@Override
|
||||
protected void onOpen(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
||||
world.playSound((EntityHuman) null, (double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.5D, (double) blockposition.getZ() + 0.5D, SoundEffects.ENDER_CHEST_OPEN, SoundCategory.BLOCKS, 0.5F, world.random.nextFloat() * 0.1F + 0.9F);
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/level/chunk/ChunkGenerator.java
|
||||
+++ b/net/minecraft/world/level/chunk/ChunkGenerator.java
|
||||
@@ -414,7 +414,7 @@
|
||||
@@ -417,7 +417,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
ChunkCoordIntPair chunkcoordintpair = ichunkaccess.getPos();
|
||||
|
||||
if (!SharedConstants.debugVoidTerrain(chunkcoordintpair)) {
|
||||
@@ -436,7 +436,7 @@
|
||||
@@ -439,7 +439,7 @@
|
||||
|
||||
for (int k = 0; k < j; ++k) {
|
||||
ChunkSection chunksection = achunksection[k];
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
Objects.requireNonNull(set);
|
||||
palettedcontainerro.getAll(set::add);
|
||||
@@ -462,7 +462,7 @@
|
||||
@@ -465,7 +465,7 @@
|
||||
Structure structure = (Structure) iterator.next();
|
||||
|
||||
seededrandom.setFeatureSeed(i, i1, l);
|
||||
@@ -27,7 +27,7 @@
|
||||
Optional optional = iregistry.getResourceKey(structure).map(Object::toString);
|
||||
|
||||
Objects.requireNonNull(structure);
|
||||
@@ -547,6 +547,33 @@
|
||||
@@ -550,6 +550,33 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructure.java
|
||||
+++ b/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructure.java
|
||||
@@ -50,6 +50,12 @@
|
||||
@@ -51,6 +51,12 @@
|
||||
import net.minecraft.world.phys.shapes.VoxelShapeBitSet;
|
||||
import net.minecraft.world.phys.shapes.VoxelShapeDiscrete;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
public class DefinedStructure {
|
||||
|
||||
public static final String PALETTE_TAG = "palette";
|
||||
@@ -69,6 +75,11 @@
|
||||
@@ -70,6 +76,11 @@
|
||||
private BaseBlockPosition size;
|
||||
private String author;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
public DefinedStructure() {
|
||||
this.size = BaseBlockPosition.ZERO;
|
||||
this.author = "?";
|
||||
@@ -142,7 +153,7 @@
|
||||
@@ -143,7 +154,7 @@
|
||||
}
|
||||
|
||||
private static List<DefinedStructure.BlockInfo> buildInfoList(List<DefinedStructure.BlockInfo> list, List<DefinedStructure.BlockInfo> list1, List<DefinedStructure.BlockInfo> list2) {
|
||||
@@ -34,7 +34,7 @@
|
||||
return definedstructure_blockinfo.pos.getY();
|
||||
}).thenComparingInt((definedstructure_blockinfo) -> {
|
||||
return definedstructure_blockinfo.pos.getX();
|
||||
@@ -463,11 +474,13 @@
|
||||
@@ -464,11 +475,13 @@
|
||||
}
|
||||
|
||||
private static Optional<Entity> createEntityIgnoreException(WorldAccess worldaccess, NBTTagCompound nbttagcompound) {
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
public BaseBlockPosition getSize(EnumBlockRotation enumblockrotation) {
|
||||
@@ -682,6 +695,13 @@
|
||||
@@ -683,6 +696,13 @@
|
||||
nbttagcompound.put("entities", nbttaglist3);
|
||||
nbttagcompound.put("size", this.newIntegerList(this.size.getX(), this.size.getY(), this.size.getZ()));
|
||||
nbttagcompound.putInt("DataVersion", SharedConstants.getCurrentVersion().getWorldVersion());
|
||||
@@ -66,7 +66,7 @@
|
||||
return nbttagcompound;
|
||||
}
|
||||
|
||||
@@ -721,6 +741,12 @@
|
||||
@@ -722,6 +742,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
}
|
||||
|
||||
private void loadPalette(NBTTagList nbttaglist, NBTTagList nbttaglist1) {
|
||||
@@ -860,7 +886,7 @@
|
||||
@@ -861,7 +887,7 @@
|
||||
public IBlockData stateFor(int i) {
|
||||
IBlockData iblockdata = (IBlockData) this.ids.byId(i);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/level/redstone/NeighborUpdater.java
|
||||
+++ b/net/minecraft/world/level/redstone/NeighborUpdater.java
|
||||
@@ -11,6 +11,13 @@
|
||||
@@ -12,6 +12,13 @@
|
||||
import net.minecraft.world.level.World;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.state.IBlockData;
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
public interface NeighborUpdater {
|
||||
|
||||
@@ -45,6 +52,17 @@
|
||||
@@ -46,6 +53,17 @@
|
||||
|
||||
static void executeUpdate(World world, IBlockData iblockdata, BlockPosition blockposition, Block block, BlockPosition blockposition1, boolean flag) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user