summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-05-30 21:25:59 +1000
committermd_5 <git@md-5.net>2017-05-30 21:55:13 +1000
commite13d1196863d5dcfea3d17b79238427dfb2c61b2 (patch)
tree56220ee8c2b98066fddfce1f7239a6f3e6261187 /src
parentc155d8dd32556a197ab73c437760e6194ae4e04a (diff)
downloadcraftbukkit-e13d1196863d5dcfea3d17b79238427dfb2c61b2.tar
craftbukkit-e13d1196863d5dcfea3d17b79238427dfb2c61b2.tar.gz
craftbukkit-e13d1196863d5dcfea3d17b79238427dfb2c61b2.tar.lz
craftbukkit-e13d1196863d5dcfea3d17b79238427dfb2c61b2.tar.xz
craftbukkit-e13d1196863d5dcfea3d17b79238427dfb2c61b2.zip
Update to Minecraft 1.12-pre6
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java2
-rw-r--r--src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java4
-rw-r--r--src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
index 6e9ee1af..2e81ea86 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
@@ -391,7 +391,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return false;
}
- getHandle().aF(); // PAIL: rename
+ getHandle().ejectPassengers();
return true;
}
diff --git a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java
index a2496e79..a252b91b 100644
--- a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java
+++ b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java
@@ -76,7 +76,7 @@ final class CraftTeam extends CraftScoreboardComponent implements Team {
public ChatColor getColor() throws IllegalStateException {
CraftScoreboard scoreboard = checkState();
- return CraftChatMessage.getColor(team.m()); // PAIL: rename
+ return CraftChatMessage.getColor(team.getColor()); // PAIL: rename
}
@Override
@@ -84,7 +84,7 @@ final class CraftTeam extends CraftScoreboardComponent implements Team {
Validate.notNull(color, "Color cannot be null");
CraftScoreboard scoreboard = checkState();
- team.a(CraftChatMessage.getColor(color)); // PAIL: rename
+ team.setColor(CraftChatMessage.getColor(color)); // PAIL: rename
}
public boolean allowFriendlyFire() throws IllegalStateException {
diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java b/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java
index 598d088f..dbbed1be 100644
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java
@@ -36,7 +36,7 @@ public final class CraftChatMessage {
}
public static ChatColor getColor(EnumChatFormat format) {
- return ChatColor.getByChar(format.z);
+ return ChatColor.getByChar(format.character);
}
private static class StringMessage {