Merge branch 'release/3.2'

This commit is contained in:
Dylan K. Taylor
2018-08-19 16:03:04 +01:00
4 changed files with 8 additions and 1 deletions

View File

@ -287,6 +287,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
public static function createEntity($type, Level $level, CompoundTag $nbt, ...$args) : ?Entity{
if(isset(self::$knownEntities[$type])){
$class = self::$knownEntities[$type];
/** @see Entity::__construct() */
return new $class($level, $nbt, ...$args);
}