summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 18:01:13 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 18:01:13 +0100
commit9252230e3a2ce6d1169cb96097d2ebc160e3fedb (patch)
treed57ffec457b18f87cb840b40609ea3c1ae60be5d /src/main
parent2b5a61f03d135a3f4e82bc6f4b2b8ea47abd5dcb (diff)
downloadcraftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.tar
craftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.tar.gz
craftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.tar.lz
craftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.tar.xz
craftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.zip
Update for Minecraft 1.8.1
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/minecraft/server/ContainerPlayer.java16
-rw-r--r--src/main/java/net/minecraft/server/ContainerWorkbench.java16
-rw-r--r--src/main/java/net/minecraft/server/MinecraftServer.java2
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java2
4 files changed, 24 insertions, 12 deletions
diff --git a/src/main/java/net/minecraft/server/ContainerPlayer.java b/src/main/java/net/minecraft/server/ContainerPlayer.java
index 9eed24c1..aa13bc7b 100644
--- a/src/main/java/net/minecraft/server/ContainerPlayer.java
+++ b/src/main/java/net/minecraft/server/ContainerPlayer.java
@@ -82,13 +82,19 @@ public class ContainerPlayer extends Container {
itemstack = itemstack1.cloneItemStack();
if (i == 0) {
- this.a(itemstack1, 9, 45, true);
+ if (!this.a(itemstack1, 9, 45, true)) {
+ return null;
+ }
} else if (i >= 9 && i < 36) {
- this.a(itemstack1, 36, 45, false);
+ if (!this.a(itemstack1, 36, 45, false)) {
+ return null;
+ }
} else if (i >= 36 && i < 45) {
- this.a(itemstack1, 9, 36, false);
- } else {
- this.a(itemstack1, 9, 45, false);
+ if (!this.a(itemstack1, 9, 36, false)) {
+ return null;
+ }
+ } else if (!this.a(itemstack1, 9, 45, false)) {
+ return null;
}
if (itemstack1.count == 0) {
diff --git a/src/main/java/net/minecraft/server/ContainerWorkbench.java b/src/main/java/net/minecraft/server/ContainerWorkbench.java
index 221cc768..f0e29fa0 100644
--- a/src/main/java/net/minecraft/server/ContainerWorkbench.java
+++ b/src/main/java/net/minecraft/server/ContainerWorkbench.java
@@ -77,13 +77,19 @@ public class ContainerWorkbench extends Container {
itemstack = itemstack1.cloneItemStack();
if (i == 0) {
- this.a(itemstack1, 10, 46, true);
+ if (!this.a(itemstack1, 10, 46, true)) {
+ return null;
+ }
} else if (i >= 10 && i < 37) {
- this.a(itemstack1, 37, 46, false);
+ if (!this.a(itemstack1, 37, 46, false)) {
+ return null;
+ }
} else if (i >= 37 && i < 46) {
- this.a(itemstack1, 10, 37, false);
- } else {
- this.a(itemstack1, 10, 46, false);
+ if (!this.a(itemstack1, 10, 37, false)) {
+ return null;
+ }
+ } else if (!this.a(itemstack1, 10, 46, false)) {
+ return null;
}
if (itemstack1.count == 0) {
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index 9d4125d1..713eb412 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -91,7 +91,7 @@ public class MinecraftServer implements Runnable, ICommandListener {
System.setErr(new PrintStream(new LoggerOutputStream(log, Level.SEVERE), true));
// CraftBukkit end
- log.info("Starting minecraft server version Beta 1.8");
+ log.info("Starting minecraft server version Beta 1.8.1");
if (Runtime.getRuntime().maxMemory() / 1024L / 1024L < 512L) {
log.warning("**** NOT ENOUGH RAM!");
log.warning("To start the server with more ram, launch it as \"java -Xmx1024M -Xms1024M -jar minecraft_server.jar\"");
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 234eced6..2c8420d0 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -80,7 +80,7 @@ import org.yaml.snakeyaml.error.MarkedYAMLException;
public final class CraftServer implements Server {
private final String serverName = "Craftbukkit";
private final String serverVersion;
- private final String protocolVersion = "1.8";
+ private final String protocolVersion = "1.8.1";
private final ServicesManager servicesManager = new SimpleServicesManager();
private final BukkitScheduler scheduler = new CraftScheduler(this);
private final SimpleCommandMap commandMap = new SimpleCommandMap(this);