Skip to content

Commit 21abe6a

Browse files
committed
Fix Nullref introduced via f9bec79
1 parent be957a3 commit 21abe6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BPEssentials/Commands/Warps/WarpCreate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void Invoke(ShPlayer player, string warp, int price = 0, int delay = 0)
2121
player.TS("price_error_negative");
2222
return;
2323
}
24-
if (player.GetPlace.GetEntranceDoor is ShApartment)
24+
if (player.GetPlace.IsClone)
2525
{
2626
player.TS("warpCreate_error_inApartment");
2727
return;

0 commit comments

Comments
 (0)