mirror of
https://bitbucket.org/projectswg/holocore.git
synced 2026-01-16 23:04:20 -05:00
Merged in M4SS/holocore/192 (pull request #673)
#192: Fix armor dupe at server reboot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user