Remove final methods

This commit is contained in:
themode 2021-03-04 23:06:29 +01:00
parent 061dabbe4c
commit 55179082e9

View File

@ -356,7 +356,7 @@ public class Entity implements Viewable, EventHandler, DataContainer, Permission
} }
@Override @Override
public final boolean removeViewer(@NotNull Player player) { public boolean removeViewer(@NotNull Player player) {
synchronized (this.entityTypeLock) { synchronized (this.entityTypeLock) {
return removeViewer0(player); return removeViewer0(player);
} }
@ -391,7 +391,7 @@ public class Entity implements Viewable, EventHandler, DataContainer, Permission
* *
* @param entityType the new entity type * @param entityType the new entity type
*/ */
public final void switchEntityType(@NotNull EntityType entityType) { public void switchEntityType(@NotNull EntityType entityType) {
synchronized (entityTypeLock) { synchronized (entityTypeLock) {
this.entityType = entityType; this.entityType = entityType;
this.metadata = new Metadata(this); this.metadata = new Metadata(this);