Improved heightmap generation

This commit is contained in:
Shoghi Cervantes
2015-04-29 23:19:27 +02:00
parent 7754aa71a3
commit d4b2e3d1b7
7 changed files with 27 additions and 13 deletions

View File

@ -151,7 +151,7 @@ class HandlerList{
* @return RegisteredListener[]
*/
public function getRegisteredListeners($plugin = null){
if($plugin instanceof Plugin){
if($plugin !== null){
$listeners = [];
foreach($this->getRegisteredListeners(null) as $hash => $listener){
if($listener->getPlugin() === $plugin){