Skip to content

Commit b197d57

Browse files
committed
Fix Keys.INVULNERABLE remove operation
1 parent b4cc4f0 commit b197d57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/spongepowered/common/data/provider/entity/InvulnerableData.java

+2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ public static void register(final DataProviderRegistrator registrator) {
4040
.asMutable(Entity.class)
4141
.create(Keys.INVULNERABLE)
4242
.get(Entity::isInvulnerable)
43+
.resetOnDelete(false)
4344
.set(Entity::setInvulnerable)
4445
.asMutable(SpongeUserData.class)
4546
.create(Keys.INVULNERABLE)
4647
.get(SpongeUserData::isInvulnerable)
48+
.resetOnDelete(false)
4749
.set(SpongeUserData::setInvulnerable);
4850
}
4951
// @formatter:on

0 commit comments

Comments
 (0)