Skip to content

Commit

Permalink
fix(core-bukkit): converting component to nms component in 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Misat11 committed Jun 10, 2024
1 parent 1026a8d commit 7079e65
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.jetbrains.annotations.NotNull;
import org.screamingsandals.lib.impl.nms.accessors.core.IRegistryAccessor;
import org.screamingsandals.lib.impl.nms.accessors.core.MappedRegistryAccessor;
import org.screamingsandals.lib.impl.nms.accessors.core.RegistryAccessAccessor;
import org.screamingsandals.lib.impl.nms.accessors.core.registries.BuiltInRegistriesAccessor;
import org.screamingsandals.lib.impl.nms.accessors.network.chat.Component$SerializerAccessor;
import org.screamingsandals.lib.impl.nms.accessors.network.protocol.PacketAccessor;
Expand Down Expand Up @@ -91,7 +92,7 @@ public static boolean sendNMSConstructedPacket(Player player, Object packet) {
if (Component$SerializerAccessor.METHOD_FROM_JSON.get() != null) {
return Reflect.fastInvoke(Component$SerializerAccessor.METHOD_FROM_JSON.get(), (Object) javaJson);
} else {
return Reflect.fastInvoke(Component$SerializerAccessor.METHOD_FROM_JSON_LENIENT.get(), (Object) javaJson);
return Reflect.fastInvoke(Component$SerializerAccessor.METHOD_FROM_JSON_LENIENT.get(), javaJson, RegistryAccessAccessor.CONST_EMPTY.get());
}
}

Expand Down

0 comments on commit 7079e65

Please sign in to comment.