@@ -134,6 +134,7 @@ public boolean removeSeat(GSeat seat, GStopReason stopReason, boolean useSafeDis
134134 if (preEntityStopSitEvent .isCancelled () && stopReason .isCancellable ()) return false ;
135135
136136 Entity entity = seat .getEntity ();
137+ entityBlocked .add (entity .getUniqueId ());
137138 if (useSafeDismount ) handleSafeSeatDismount (seat );
138139
139140 Set <GSeat > blockSeatList = blockSeats .remove (seat .getBlock ());
@@ -143,6 +144,7 @@ public boolean removeSeat(GSeat seat, GStopReason stopReason, boolean useSafeDis
143144 }
144145 seats .remove (entity .getUniqueId ());
145146 seat .getSeatEntity ().remove ();
147+ entityBlocked .remove (entity .getUniqueId ());
146148 Bukkit .getPluginManager ().callEvent (new EntityStopSitEvent (seat , stopReason ));
147149 sitUsageNanoTime += seat .getLifetimeInNanoSeconds ();
148150
@@ -157,17 +159,13 @@ public void handleSafeSeatDismount(GSeat seat) {
157159
158160 Location returnLocation = gSitMain .getConfigService ().GET_UP_RETURN ? seat .getReturnLocation () : upLocation ;
159161
160- entityBlocked .add (entity .getUniqueId ());
161-
162162 Location entityLocation = entity .getLocation ();
163163
164164 returnLocation .setYaw (entityLocation .getYaw ());
165165 returnLocation .setPitch (entityLocation .getPitch ());
166166
167167 gSitMain .getEntityUtil ().setEntityLocation (entity , returnLocation );
168168 if (!gSitMain .getVersionManager ().isNewerOrVersion (17 , 0 )) gSitMain .getEntityUtil ().setEntityLocation (seat .getSeatEntity (), returnLocation );
169-
170- entityBlocked .remove (entity .getUniqueId ());
171169 }
172170
173171 public GSeat createStairSeatForEntity (Block block , LivingEntity entity ) {
0 commit comments