branchrust_reboot/main/dobuild_optimscancel
7 Commits over 0 Days - Infinitycph!
Updated the privilege helpers in Safety/Check to use PrivilegeCacheDefaultValue() instead of hardcoded defaults
Reordered a check in server Planner::DoBuild to save a CanBuild check if the construction can bypass building permission
Fixed another missing Profiler.EndSample in AntiHack::IsInsideMesh
Removed the prefab lookup in SleepingBag::CanBuildBed
We now only call SleepingBag::CanBuildBed in DoBuild if the construction is a sleeping bag (we have a isSleepingBag field cached during PreProcess)
Re-ordered the checks in server Planner::DoBuild, so we can return early and avoid the expensive CanBuild
Fixed missing Profiler.EndSample in AntiHack::IsInsideMesh