Im having the same issue. 1.20.1
and yes it does effect levelchunks as well because they both use "with". the ones with no arg are fine.
this is because it now takes a "supplier<t>" instead of whatever else
i can probably test a workaround and call the other "sendto" code for instance
however "serverPlayer.connection.getConnection()" is invalid i assume its "serverPlayer.connection.connection"??
its been 3 years how has no one had this issue before.
pulled from base mincraft packet distributor
public PacketTarget with(Supplier<T> input) { return new PacketTarget((Consumer)this.functor.apply(this, input), this); }
public PacketTarget noArg() { return new PacketTarget((Consumer)this.functor.apply(this, () -> { return null; }), this); }