Merge branch 'release/3.0' into release/3.1

This commit is contained in:
Dylan K. Taylor
2018-08-19 16:00:25 +01:00
5 changed files with 12 additions and 1 deletions

View File

@ -285,6 +285,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);
}