mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
Update to Minecraft 1.10.2
This commit is contained in:
parent
1953f52da1
commit
75f99ec7c5
@ -12,7 +12,7 @@
|
|||||||
public class BlockSoil extends Block {
|
public class BlockSoil extends Block {
|
||||||
|
|
||||||
public static final BlockStateInteger MOISTURE = BlockStateInteger.of("moisture", 0, 7);
|
public static final BlockStateInteger MOISTURE = BlockStateInteger.of("moisture", 0, 7);
|
||||||
@@ -40,6 +45,12 @@
|
@@ -35,6 +40,12 @@
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
world.setTypeAndData(blockposition, iblockdata.set(BlockSoil.MOISTURE, Integer.valueOf(i - 1)), 2);
|
world.setTypeAndData(blockposition, iblockdata.set(BlockSoil.MOISTURE, Integer.valueOf(i - 1)), 2);
|
||||||
} else if (!this.b(world, blockposition)) {
|
} else if (!this.b(world, blockposition)) {
|
||||||
@ -25,7 +25,7 @@
|
|||||||
world.setTypeUpdate(blockposition, Blocks.DIRT.getBlockData());
|
world.setTypeUpdate(blockposition, Blocks.DIRT.getBlockData());
|
||||||
}
|
}
|
||||||
} else if (i < 7) {
|
} else if (i < 7) {
|
||||||
@@ -49,11 +60,31 @@
|
@@ -44,11 +55,31 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public void fallOn(World world, BlockPosition blockposition, Entity entity, float f) {
|
public void fallOn(World world, BlockPosition blockposition, Entity entity, float f) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
--- a/net/minecraft/server/DataWatcher.java
|
--- a/net/minecraft/server/DataWatcher.java
|
||||||
+++ b/net/minecraft/server/DataWatcher.java
|
+++ b/net/minecraft/server/DataWatcher.java
|
||||||
@@ -55,7 +55,7 @@
|
@@ -70,7 +70,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9,7 +9,7 @@
|
|||||||
int i = datawatcherobject.a();
|
int i = datawatcherobject.a();
|
||||||
|
|
||||||
if (i > 254) {
|
if (i > 254) {
|
||||||
@@ -69,7 +69,7 @@
|
@@ -84,7 +84,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,4 +17,4 @@
|
|||||||
+ private <T> void registerObject(DataWatcherObject<T> datawatcherobject, Object t0) { // CraftBukkit Object
|
+ private <T> void registerObject(DataWatcherObject<T> datawatcherobject, Object t0) { // CraftBukkit Object
|
||||||
DataWatcher.Item datawatcher_item = new DataWatcher.Item(datawatcherobject, t0);
|
DataWatcher.Item datawatcher_item = new DataWatcher.Item(datawatcherobject, t0);
|
||||||
|
|
||||||
this.d.writeLock().lock();
|
this.e.writeLock().lock();
|
||||||
|
@ -110,7 +110,7 @@
|
|||||||
+
|
+
|
||||||
thread.setDaemon(true);
|
thread.setDaemon(true);
|
||||||
thread.start();
|
thread.start();
|
||||||
DedicatedServer.LOGGER.info("Starting minecraft server version 1.10");
|
DedicatedServer.LOGGER.info("Starting minecraft server version 1.10.2");
|
||||||
@@ -78,7 +124,7 @@
|
@@ -78,7 +124,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
--- a/net/minecraft/server/EnderDragonBattle.java
|
|
||||||
+++ b/net/minecraft/server/EnderDragonBattle.java
|
|
||||||
@@ -246,7 +246,7 @@
|
|
||||||
ShapeDetector.ShapeDetectorCollection shapedetector_shapedetectorcollection = this.f.a(this.d, tileentity.getPosition());
|
|
||||||
|
|
||||||
if (shapedetector_shapedetectorcollection != null) {
|
|
||||||
- BlockPosition blockposition = shapedetector_shapedetectorcollection.a(3, 3, 4).getPosition();
|
|
||||||
+ BlockPosition blockposition = shapedetector_shapedetectorcollection.a(3, 3, 3).getPosition(); // CraftBukkit - 4 -> 3
|
|
||||||
|
|
||||||
if (this.o == null && blockposition.getX() == 0 && blockposition.getZ() == 0) {
|
|
||||||
this.o = blockposition;
|
|
||||||
@@ -266,7 +266,7 @@
|
|
||||||
|
|
||||||
if (shapedetector_shapedetectorcollection1 != null) {
|
|
||||||
if (this.o == null) {
|
|
||||||
- this.o = shapedetector_shapedetectorcollection1.a(3, 3, 4).getPosition();
|
|
||||||
+ this.o = shapedetector_shapedetectorcollection1.a(3, 3, 3).getPosition(); // CraftBukkit - 4 -> 3
|
|
||||||
}
|
|
||||||
|
|
||||||
return shapedetector_shapedetectorcollection1;
|
|
@ -13,7 +13,7 @@
|
|||||||
+
|
+
|
||||||
public class EntityPotion extends EntityProjectile {
|
public class EntityPotion extends EntityProjectile {
|
||||||
|
|
||||||
private static final DataWatcherObject<Optional<ItemStack>> d = DataWatcher.a(EntityItem.class, DataWatcherRegistry.f);
|
private static final DataWatcherObject<Optional<ItemStack>> d = DataWatcher.a(EntityPotion.class, DataWatcherRegistry.f);
|
||||||
@@ -78,10 +85,11 @@
|
@@ -78,10 +85,11 @@
|
||||||
this.world.triggerEffect(2002, new BlockPosition(this), PotionRegistry.a(potionregistry));
|
this.world.triggerEffect(2002, new BlockPosition(this), PotionRegistry.a(potionregistry));
|
||||||
this.die();
|
this.die();
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
+
|
+
|
||||||
if (packethandshakinginsetprotocol.b() > 210) {
|
if (packethandshakinginsetprotocol.b() > 210) {
|
||||||
chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.10");
|
chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.10.2");
|
||||||
this.b.sendPacket(new PacketLoginOutDisconnect(chatcomponenttext));
|
this.b.sendPacket(new PacketLoginOutDisconnect(chatcomponenttext));
|
||||||
@@ -26,6 +71,7 @@
|
@@ -26,6 +71,7 @@
|
||||||
this.b.close(chatcomponenttext);
|
this.b.close(chatcomponenttext);
|
||||||
|
@ -434,7 +434,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1240,7 +1484,10 @@
|
@@ -1247,7 +1491,10 @@
|
||||||
int j = MathHelper.floor(entity.locZ);
|
int j = MathHelper.floor(entity.locZ);
|
||||||
boolean flag1 = true;
|
boolean flag1 = true;
|
||||||
|
|
||||||
@ -446,7 +446,7 @@
|
|||||||
entity.M = entity.locX;
|
entity.M = entity.locX;
|
||||||
entity.N = entity.locY;
|
entity.N = entity.locY;
|
||||||
entity.O = entity.locZ;
|
entity.O = entity.locZ;
|
||||||
@@ -1579,11 +1826,18 @@
|
@@ -1586,11 +1833,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -465,7 +465,7 @@
|
|||||||
TileEntity tileentity = null;
|
TileEntity tileentity = null;
|
||||||
|
|
||||||
if (this.M) {
|
if (this.M) {
|
||||||
@@ -1618,6 +1872,14 @@
|
@@ -1625,6 +1879,14 @@
|
||||||
public void setTileEntity(BlockPosition blockposition, @Nullable TileEntity tileentity) {
|
public void setTileEntity(BlockPosition blockposition, @Nullable TileEntity tileentity) {
|
||||||
if (!this.E(blockposition)) {
|
if (!this.E(blockposition)) {
|
||||||
if (tileentity != null && !tileentity.x()) {
|
if (tileentity != null && !tileentity.x()) {
|
||||||
@ -480,7 +480,7 @@
|
|||||||
if (this.M) {
|
if (this.M) {
|
||||||
tileentity.setPosition(blockposition);
|
tileentity.setPosition(blockposition);
|
||||||
Iterator iterator = this.b.iterator();
|
Iterator iterator = this.b.iterator();
|
||||||
@@ -1773,6 +2035,14 @@
|
@@ -1780,6 +2042,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this.o = MathHelper.a(this.o, 0.0F, 1.0F);
|
this.o = MathHelper.a(this.o, 0.0F, 1.0F);
|
||||||
@ -495,7 +495,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1904,7 +2174,10 @@
|
@@ -1911,7 +2181,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean c(EnumSkyBlock enumskyblock, BlockPosition blockposition) {
|
public boolean c(EnumSkyBlock enumskyblock, BlockPosition blockposition) {
|
||||||
@ -507,7 +507,7 @@
|
|||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@@ -2071,7 +2344,7 @@
|
@@ -2078,7 +2351,7 @@
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
Entity entity = (Entity) iterator.next();
|
Entity entity = (Entity) iterator.next();
|
||||||
|
|
||||||
@ -516,7 +516,7 @@
|
|||||||
arraylist.add(entity);
|
arraylist.add(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2086,7 +2359,7 @@
|
@@ -2093,7 +2366,7 @@
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
Entity entity = (Entity) iterator.next();
|
Entity entity = (Entity) iterator.next();
|
||||||
|
|
||||||
@ -525,7 +525,7 @@
|
|||||||
arraylist.add(entity);
|
arraylist.add(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2135,7 +2408,7 @@
|
@@ -2142,7 +2415,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -534,7 +534,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@@ -2156,8 +2429,17 @@
|
@@ -2163,8 +2436,17 @@
|
||||||
|
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
Entity entity = (Entity) iterator.next();
|
Entity entity = (Entity) iterator.next();
|
||||||
@ -554,7 +554,7 @@
|
|||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2166,12 +2448,18 @@
|
@@ -2173,12 +2455,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public void a(Collection<Entity> collection) {
|
public void a(Collection<Entity> collection) {
|
||||||
@ -574,7 +574,7 @@
|
|||||||
this.b(entity);
|
this.b(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2185,7 +2473,13 @@
|
@@ -2192,7 +2480,13 @@
|
||||||
IBlockData iblockdata = this.getType(blockposition);
|
IBlockData iblockdata = this.getType(blockposition);
|
||||||
AxisAlignedBB axisalignedbb = flag ? null : block.getBlockData().d(this, blockposition);
|
AxisAlignedBB axisalignedbb = flag ? null : block.getBlockData().d(this, blockposition);
|
||||||
|
|
||||||
@ -589,7 +589,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int K() {
|
public int K() {
|
||||||
@@ -2288,6 +2582,11 @@
|
@@ -2295,6 +2589,11 @@
|
||||||
|
|
||||||
for (int i = 0; i < this.players.size(); ++i) {
|
for (int i = 0; i < this.players.size(); ++i) {
|
||||||
EntityHuman entityhuman1 = (EntityHuman) this.players.get(i);
|
EntityHuman entityhuman1 = (EntityHuman) this.players.get(i);
|
||||||
@ -601,7 +601,7 @@
|
|||||||
|
|
||||||
if ((IEntitySelector.d.apply(entityhuman1) || !flag) && (IEntitySelector.e.apply(entityhuman1) || flag)) {
|
if ((IEntitySelector.d.apply(entityhuman1) || !flag) && (IEntitySelector.e.apply(entityhuman1) || flag)) {
|
||||||
double d5 = entityhuman1.e(d0, d1, d2);
|
double d5 = entityhuman1.e(d0, d1, d2);
|
||||||
@@ -2456,6 +2755,16 @@
|
@@ -2463,6 +2762,16 @@
|
||||||
|
|
||||||
public void everyoneSleeping() {}
|
public void everyoneSleeping() {}
|
||||||
|
|
||||||
@ -618,7 +618,7 @@
|
|||||||
public float h(float f) {
|
public float h(float f) {
|
||||||
return (this.p + (this.q - this.p) * f) * this.j(f);
|
return (this.p + (this.q - this.p) * f) * this.j(f);
|
||||||
}
|
}
|
||||||
@@ -2673,7 +2982,7 @@
|
@@ -2680,7 +2989,7 @@
|
||||||
int l = j * 16 + 8 - blockposition.getZ();
|
int l = j * 16 + 8 - blockposition.getZ();
|
||||||
boolean flag = true;
|
boolean flag = true;
|
||||||
|
|
||||||
|
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
|||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>craftbukkit</artifactId>
|
<artifactId>craftbukkit</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.10-R0.1-SNAPSHOT</version>
|
<version>1.10.2-R0.1-SNAPSHOT</version>
|
||||||
<name>CraftBukkit</name>
|
<name>CraftBukkit</name>
|
||||||
<url>http://www.bukkit.org</url>
|
<url>http://www.bukkit.org</url>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user