Compatibility with PrimitiveSurvival door locks
Opened this issue · 0 comments
StatsBloke commented
I have a player on my server who has used VSVillage elements heavily in their settlement. When they are logged in, or another player goes near their chunks, the server log is constantly full of the error below, sometimes multiple times per second. I believe it's caused by villagers trying to access various doors the player has locked to prevent the villagers getting into areas they don't want them in. I realise compatibility with PS may not be in scope, but wanted to make you aware of this issue.
My players and I are very much enjoying the mod!
3.5.2024 14:42:25 [Server Error] Exception: Object reference not set to an instance of an object.
at Vintagestory.GameContent.ModSystemBlockReinforcement.IsLockedForInteract(BlockPos pos, IPlayer forPlayer) in VSSurvivalMod
\Systems\BlockReinforcement.cs:line 622
at Vintagestory.GameContent.BlockBehaviorLockable.OnBlockInteractStart(IWorldAccessor world, IPlayer byPlayer, BlockSelection
blockSel, EnumHandling& handling) in VSSurvivalMod\BlockBehavior\BehaviorLockable.cs:line 28
at Vintagestory.GameContent.BlockBaseDoor.DoesBehaviorAllow(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel)
in VSSurvivalMod\Block\BlockBaseDoor.cs:line 69
at Vintagestory.GameContent.BlockBaseDoor.OnBlockInteractStart(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSe
l) in VSSurvivalMod\Block\BlockBaseDoor.cs:line 90
at VsVillage.VillagerWaypointsTraverser.toggleDoor(BlockPos pos, Boolean shouldBeOpen) in E:\Workspace\vintage_story_mods\vsv
illage\src\Entity\Pathfinding\VillagerWaypointsTraverser.cs:line 298
at VsVillage.VillagerWaypointsTraverser.OnGameTick(Single dt) in E:\Workspace\vintage_story_mods\vsvillage\src\Entity\Pathfin
ding\VillagerWaypointsTraverser.cs:line 123
at Vintagestory.API.Common.Entities.Entity.OnGameTick(Single dt) in VintagestoryApi\Common\Entity\Entity.cs:line 874
at Vintagestory.API.Common.EntityAgent.OnGameTick(Single dt) in VintagestoryApi\Common\Entity\EntityAgent.cs:line 540
at VsVillage.EntityVillager.OnGameTick(Single dt) in E:\Workspace\vintage_story_mods\vsvillage\src\Entity\EntityVillager.cs:l
ine 121
at Vintagestory.Server.ServerSystemEntitySimulation.TickEntities(Single dt) in VintagestoryLib\Server\Systems\World\EntitySim
ulation.cs:line 330
at Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick(Single dt) in VintagestoryLib\Server\Systems\World\EntitySim
ulation.cs:line 169
at Vintagestory.Server.ServerMain.Process() in VintagestoryLib\Server\ServerMain.cs:line 886