3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-20 09:50:06 +01:00

Make use of invokeExact

Dieser Commit ist enthalten in:
Hannes Greule 2021-04-10 14:30:20 +02:00
Ursprung f0b1b81d4f
Commit 5812b94608

Datei anzeigen

@ -55,8 +55,9 @@ public class TuinityRelighter_1_16_5 implements Relighter {
TaskManager.IMP.task(() ->
{
try {
relight.invoke(world.getChunkProvider().getLightEngine(),
new HashSet<>(chunks),
// cast is required for invokeExact
int unused = (int) relight.invokeExact(world.getChunkProvider().getLightEngine(),
(Set<?>) new HashSet<>(chunks), // explicit cast to make invokeExact work
(Consumer<?>) coord -> sendChunk(cx, cz), // send chunk after lighting was done
nothingIntConsumer
);