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:
Ursprung
f0b1b81d4f
Commit
5812b94608
@ -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
|
||||
);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren