Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
Remove debug stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Dec 13, 2016
1 parent 4a0dbad commit a043489
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/magicode/pureentities/PureEntities.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,10 @@ public function BlockPlaceEvent(BlockPlaceEvent $ev){
public function scheduleCreatureSpawn(Position $pos, int $entityid, Level $level, string $type) {
$this->getServer()->getPluginManager()->callEvent($event = new CreatureSpawnEvent($this, $pos, $entityid, $level, $type));
if($event->isCancelled()) {
$this->getServer()->getLogger()->info("Event was cancelled!");
return false;
} else {
$entity = self::create($entityid, $pos);
$entity->spawnToAll();
$this->getServer()->getLogger()->info("Event was not cancelled!");
return true;
}
}
Expand Down

0 comments on commit a043489

Please sign in to comment.