Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
Add override and correct default method for fromNative
- Fixes #1370
Dieser Commit ist enthalten in:
Ursprung
e7a6c3e58c
Commit
8ed4736066
@ -909,6 +909,7 @@ public final class PaperweightAdapter implements BukkitImplAdapter<net.minecraft
|
||||
* @param foreign structure to convert
|
||||
* @return non-native structure
|
||||
*/
|
||||
@Override
|
||||
public net.minecraft.nbt.Tag fromNative(Tag foreign) {
|
||||
if (foreign == null) {
|
||||
return null;
|
||||
|
@ -298,7 +298,10 @@ public interface BukkitImplAdapter<T> extends IBukkitAdapter {
|
||||
}
|
||||
|
||||
default T fromNativeBinary(BinaryTag foreign) {
|
||||
return null;
|
||||
if (foreign == null) {
|
||||
return null;
|
||||
}
|
||||
return fromNative(AdventureNBTConverter.fromAdventure(foreign));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren