parent
d51cb55f7c
commit
0a1304cfa1
|
@ -8,7 +8,7 @@ using UnityEngine;
|
|||
|
||||
namespace Oxide.Plugins
|
||||
{
|
||||
[Info("TeleportDoors", "bmgjet", "1.0.4")]
|
||||
[Info("TeleportDoors", "bmgjet", "1.0.5")]
|
||||
[Description("Using this door/button will take you to its teleport location")]
|
||||
public class TeleportDoors : RustPlugin
|
||||
{
|
||||
|
@ -127,7 +127,7 @@ namespace Oxide.Plugins
|
|||
|
||||
BaseEntity FindDoor(Vector3 pos, float radius)
|
||||
{
|
||||
foreach (BaseNetworkable baseNetworkable in BaseNetworkable.serverEntities.entityList.Values)
|
||||
foreach (BaseNetworkable baseNetworkable in BaseNetworkable.serverEntities)
|
||||
{
|
||||
if ((baseNetworkable is Door || baseNetworkable is PressButton) && baseNetworkable.transform.position == pos)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue