Remove non-null check for world of Player entity
This commit is contained in:
parent
8bfe0141bf
commit
b5b9b2c876
1 changed files with 0 additions and 3 deletions
|
@ -34,9 +34,6 @@ sealed class UranosEntity(server: UranosServer) : Entity {
|
||||||
final override var world: World? = null; private set
|
final override var world: World? = null; private set
|
||||||
|
|
||||||
override suspend fun setWorld(world: World?) {
|
override suspend fun setWorld(world: World?) {
|
||||||
if (world == null && this is PlayerEntity)
|
|
||||||
throw IllegalArgumentException("You cannot set the world of a PlayerEntity to null")
|
|
||||||
|
|
||||||
if (world == this.world) return
|
if (world == this.world) return
|
||||||
|
|
||||||
worldMutex.withLock {
|
worldMutex.withLock {
|
||||||
|
|
Reference in a new issue