mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
parent
e7a6c3e58c
commit
8ed4736066
@ -909,6 +909,7 @@ public final class PaperweightAdapter implements BukkitImplAdapter<net.minecraft
|
|||||||
* @param foreign structure to convert
|
* @param foreign structure to convert
|
||||||
* @return non-native structure
|
* @return non-native structure
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public net.minecraft.nbt.Tag fromNative(Tag foreign) {
|
public net.minecraft.nbt.Tag fromNative(Tag foreign) {
|
||||||
if (foreign == null) {
|
if (foreign == null) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -298,7 +298,10 @@ public interface BukkitImplAdapter<T> extends IBukkitAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default T fromNativeBinary(BinaryTag foreign) {
|
default T fromNativeBinary(BinaryTag foreign) {
|
||||||
return null;
|
if (foreign == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return fromNative(AdventureNBTConverter.fromAdventure(foreign));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
Loading…
Reference in New Issue
Block a user