This is not my fault

This commit is contained in:
Alexander Söderberg 2020-07-24 14:08:40 +02:00
parent f53a8d3b06
commit d7a49e3316
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678

View File

@ -53,9 +53,9 @@ final class TemporaryMetaDataAccess<T> extends MetaDataAccess<T> {
return (T) old; return (T) old;
} }
@Override public void set(@Nonnull T value) { @Override public void set(@Nonnull final T value) {
this.checkClosed(); this.checkClosed();
this.getPlayer().setMeta(this.getMetaDataKey().toString(), null); this.getPlayer().setMeta(this.getMetaDataKey().toString(), value);
} }
@Nonnull @Override public Optional<T> get() { @Nonnull @Override public Optional<T> get() {