From 342c0dab7987378b9aa79f6ad09efa32e905a7dc Mon Sep 17 00:00:00 2001
From: Pyrbu <pyrmcserver@gmail.com>
Date: Sat, 5 Aug 2023 23:04:26 +0200
Subject: [PATCH] fix the inversion

---
 .../pyr/znpcsplus/entity/properties/SimpleBitsetProperty.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/entity/properties/SimpleBitsetProperty.java b/plugin/src/main/java/lol/pyr/znpcsplus/entity/properties/SimpleBitsetProperty.java
index e533992..113f336 100644
--- a/plugin/src/main/java/lol/pyr/znpcsplus/entity/properties/SimpleBitsetProperty.java
+++ b/plugin/src/main/java/lol/pyr/znpcsplus/entity/properties/SimpleBitsetProperty.java
@@ -14,7 +14,7 @@ public class SimpleBitsetProperty extends EntityPropertyImpl<Boolean> {
     private final boolean inverted;
 
     public SimpleBitsetProperty(String name, int index, int bitmask, boolean inverted) {
-        super(name, !inverted, Boolean.class);
+        super(name, inverted, Boolean.class);
         this.index = index;
         this.bitmask = bitmask;
         this.inverted = inverted;