FallenMoonNetwork / CanaryMod

Server administration mod and API for Minecraft beta multiplayer server
http://canarymod.net
GNU Lesser General Public License v3.0
20 stars 14 forks source link

Setting mobspawner entities crashing clients Build # 262 #126

Closed BluXDragon closed 11 years ago

BluXDragon commented 11 years ago

The code provided below that worked in a prior version now crashes clients upon proximity to the spawner in question.

        if (split[0].equalsIgnoreCase("/mspawntest") && player.canUseCommand("/spawnmob")){
            HitBlox hb = new HitBlox(player);
            Block targetblock = hb.getTargetBlock();
            if (targetblock == null)return true;
            if (targetblock.getType() == 52){
                MobSpawner ms = (MobSpawner)targetblock.getComplex();
                Mob m = new Mob("Zombie", targetblock.getLocation());
                ms.setSpawnedEntity(m.getEntity());
            }
            return true;
        }
14mRh4X0r commented 11 years ago

Can you give us the crash report the client generated? It's in .minecraft/crash-reports