Merged in M4SS/holocore/192 (pull request #673)

#192: Fix armor dupe at server reboot
This commit is contained in:
Mads Boddum
2019-10-18 14:57:06 +00:00
committed by Obique PSWG

View File

@@ -68,6 +68,12 @@ class ProtectionService : Service() {
val item = intent.obj
val newContainer = intent.container
val oldContainer = intent.oldContainer
if (item.owner == null) {
// Important that we don't grant protection to players while they are not online: https://bitbucket.org/projectswg/holocore/issues/192/protection-from-equipment-is-no-longer
return
}
if (newContainer is CreatureObject) {
// They equipped something