diff options
author | Andrew Ardill <andrew.ardill@gmail.com> | 2011-02-17 14:47:33 +1100 |
---|---|---|
committer | Andrew Ardill <andrew.ardill@gmail.com> | 2011-02-17 17:57:52 +1100 |
commit | 0703f4f4581f810d8aaee2674ea6ced189a662aa (patch) | |
tree | 5bbd0ccb00a17ecf64b1aa063c46c00f6911eeb7 /src/main/java/net/minecraft/server/EntityEgg.java | |
parent | 5f940cf764a32cc1933634ca57501a6e5e4f7f77 (diff) | |
download | craftbukkit-0703f4f4581f810d8aaee2674ea6ced189a662aa.tar craftbukkit-0703f4f4581f810d8aaee2674ea6ced189a662aa.tar.gz craftbukkit-0703f4f4581f810d8aaee2674ea6ced189a662aa.tar.lz craftbukkit-0703f4f4581f810d8aaee2674ea6ced189a662aa.tar.xz craftbukkit-0703f4f4581f810d8aaee2674ea6ced189a662aa.zip |
Updated to use CreatureType and CreatureSpawner
Nothing will break as a result of the refactoring of MobType due to
deprecated code being left in. These will be removed after 1 week,
enough time for plugin devs time to migrate.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityEgg.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityEgg.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEgg.java b/src/main/java/net/minecraft/server/EntityEgg.java index adb823e1..875b4f3d 100644 --- a/src/main/java/net/minecraft/server/EntityEgg.java +++ b/src/main/java/net/minecraft/server/EntityEgg.java @@ -3,6 +3,7 @@ package net.minecraft.server; import java.util.List; // CraftBukkit start +import org.bukkit.entity.CreatureType; import org.bukkit.entity.Egg; import org.bukkit.entity.MobType; import org.bukkit.entity.Player; @@ -189,7 +190,7 @@ public class EntityEgg extends Entity { if (!hatching) { numHatching = 0; } - MobType hatchingType = MobType.CHICKEN; + CreatureType hatchingType = CreatureType.CHICKEN; if (this.ak instanceof EntityPlayer) { CraftServer server = ((WorldServer) this.world).getServer(); |