AdminTools icon indicating copy to clipboard operation
AdminTools copied to clipboard

[BUG] SpawnWorkbench

Open BenFRC5147 opened this issue 2 years ago • 0 comments

Describe the bug Workbench does not spawn

To Reproduce Steps to reproduce the behavior: Spawn in game Spawn a workbench on somebody Check LALog See error

RA Text Based indicates 'Workbench successfully spawned, you now have -1 workbenches'

Expected behavior Workbench spawns and is indexed correctly

Server logs [2023-06-30 01:35:54.691 -05:00] [ERROR] [AdminTools] SpawnWorkbench: System.ArgumentException: The Object you want to instantiate is null. at UnityEngine.Object.Instantiate[T] (T original) [0x0003d] in <3dde041251174133b8f03e5cc95ec0fe>:0 at AdminTools.EventHandlers.SpawnWorkbench (Exiled.API.Features.Player ply, UnityEngine.Vector3 position, UnityEngine.Vector3 rotation, UnityEngine.Vector3 size, System.Int32& benchIndex) [0x0003f]

EXILED Version ("latest" is not a version): 7.1

Results of show plugins command in console: Screenshot 2023-06-30 at 12 34 40 PM-1

Additional context https://github.com/BenFRC5147/AdminTools

Repo of my changes. Only affect jail command and rebuilding with exiled 7.1 dlls, dont touch workbench at all (plus same error in old version using your builds <3)

BenFRC5147 avatar Jun 30 '23 17:06 BenFRC5147