mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -07:00
Update to 1.8.6
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Zach Brown <1254957+zachbr@users.noreply.github.com>
|
||||
Date: Sat, 23 May 2015 13:00:52 -0500
|
||||
Date: Mon, 25 May 2015 15:37:00 -0500
|
||||
Subject: [PATCH] mc-dev imports
|
||||
|
||||
|
||||
@@ -728,7 +728,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ if (world.setTypeAndData(blockposition, iblockdata1, 3)) {
|
||||
+ iblockdata1 = world.getType(blockposition);
|
||||
+ if (iblockdata1.getBlock() == this.a) {
|
||||
+ a(world, blockposition, itemstack);
|
||||
+ a(world, entityhuman, blockposition, itemstack);
|
||||
+ this.a.postPlace(world, blockposition, iblockdata1, entityhuman, itemstack);
|
||||
+ }
|
||||
+
|
||||
@@ -742,33 +742,43 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ public static boolean a(World world, BlockPosition blockposition, ItemStack itemstack) {
|
||||
+ if (itemstack.hasTag() && itemstack.getTag().hasKeyOfType("BlockEntityTag", 10)) {
|
||||
+ TileEntity tileentity = world.getTileEntity(blockposition);
|
||||
+ public static boolean a(World world, EntityHuman entityhuman, BlockPosition blockposition, ItemStack itemstack) {
|
||||
+ MinecraftServer minecraftserver = MinecraftServer.getServer();
|
||||
+
|
||||
+ if (tileentity != null) {
|
||||
+ NBTTagCompound nbttagcompound = new NBTTagCompound();
|
||||
+ NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttagcompound.clone();
|
||||
+ if (minecraftserver == null) {
|
||||
+ return false;
|
||||
+ } else {
|
||||
+ if (itemstack.hasTag() && itemstack.getTag().hasKeyOfType("BlockEntityTag", 10)) {
|
||||
+ TileEntity tileentity = world.getTileEntity(blockposition);
|
||||
+
|
||||
+ tileentity.b(nbttagcompound);
|
||||
+ NBTTagCompound nbttagcompound2 = (NBTTagCompound) itemstack.getTag().get("BlockEntityTag");
|
||||
+ if (tileentity != null) {
|
||||
+ if (!world.isClientSide && tileentity.F() && !minecraftserver.getPlayerList().isOp(entityhuman.getProfile())) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ nbttagcompound.a(nbttagcompound2);
|
||||
+ nbttagcompound.setInt("x", blockposition.getX());
|
||||
+ nbttagcompound.setInt("y", blockposition.getY());
|
||||
+ nbttagcompound.setInt("z", blockposition.getZ());
|
||||
+ if (!nbttagcompound.equals(nbttagcompound1)) {
|
||||
+ tileentity.a(nbttagcompound);
|
||||
+ tileentity.update();
|
||||
+ return true;
|
||||
+ NBTTagCompound nbttagcompound = new NBTTagCompound();
|
||||
+ NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttagcompound.clone();
|
||||
+
|
||||
+ tileentity.b(nbttagcompound);
|
||||
+ NBTTagCompound nbttagcompound2 = (NBTTagCompound) itemstack.getTag().get("BlockEntityTag");
|
||||
+
|
||||
+ nbttagcompound.a(nbttagcompound2);
|
||||
+ nbttagcompound.setInt("x", blockposition.getX());
|
||||
+ nbttagcompound.setInt("y", blockposition.getY());
|
||||
+ nbttagcompound.setInt("z", blockposition.getZ());
|
||||
+ if (!nbttagcompound.equals(nbttagcompound1)) {
|
||||
+ tileentity.a(nbttagcompound);
|
||||
+ tileentity.update();
|
||||
+ return true;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return false;
|
||||
+ return false;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ public String f_(ItemStack itemstack) {
|
||||
+ public String e_(ItemStack itemstack) {
|
||||
+ return this.a.a();
|
||||
+ }
|
||||
+
|
||||
@@ -780,13 +790,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ return this.a;
|
||||
+ }
|
||||
+
|
||||
+ public static void d_(ItemStack itemstack) {
|
||||
+ if (itemstack.hasTag() && itemstack.getTag().hasKeyOfType("BlockEntityTag", 10)) {
|
||||
+ itemstack.getTag().remove("BlockEntityTag");
|
||||
+ }
|
||||
+
|
||||
+ }
|
||||
+
|
||||
+ public Item c(String s) {
|
||||
+ return this.b(s);
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user