v0.94.4.75 - prep for deprecated spawnCreature method, more Class Limit work
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: MobArena
|
name: MobArena
|
||||||
author: garbagemule
|
author: garbagemule
|
||||||
main: com.garbagemule.MobArena.MobArena
|
main: com.garbagemule.MobArena.MobArena
|
||||||
version: 0.94.4.74
|
version: 0.94.4.75
|
||||||
softdepend: [Spout,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells,Vault]
|
softdepend: [Spout,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells,Vault]
|
||||||
commands:
|
commands:
|
||||||
ma:
|
ma:
|
||||||
|
|||||||
@@ -466,6 +466,9 @@ public class ArenaImpl implements Arena
|
|||||||
// Spawn pets (must happen after 'running = true;')
|
// Spawn pets (must happen after 'running = true;')
|
||||||
spawnPets();
|
spawnPets();
|
||||||
|
|
||||||
|
// Clear the classes in use map, as they're no longer needed
|
||||||
|
limitManager.clearClassesInUse();
|
||||||
|
|
||||||
// Start logging
|
// Start logging
|
||||||
rewardManager.reset();
|
rewardManager.reset();
|
||||||
if (logging)
|
if (logging)
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ public enum MACreature
|
|||||||
|
|
||||||
public LivingEntity spawn(Arena arena, World world, Location loc) {
|
public LivingEntity spawn(Arena arena, World world, Location loc) {
|
||||||
LivingEntity e = world.spawnCreature(loc, type);
|
LivingEntity e = world.spawnCreature(loc, type);
|
||||||
|
//TODO change this to: LivingEntity e = (LivingEntity) world.spawnEntity(loc, type);
|
||||||
|
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case SHEEP:
|
case SHEEP:
|
||||||
|
|||||||
Reference in New Issue
Block a user