Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-17 00:20:09 +01:00
Add for 1.21
Dieser Commit ist enthalten in:
Ursprung
5554acb297
Commit
875b1dbac0
@ -821,8 +821,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
|
||||
if (bitMask == 0 && biomes == null && !lightUpdate) {
|
||||
callback = null;
|
||||
} else {
|
||||
int finalMask = bitMask != 0 ? bitMask : lightUpdate ? set.getBitMask() : 0;
|
||||
boolean finalLightUpdate = lightUpdate;
|
||||
final int finalBitMask = bitMask;
|
||||
callback = () -> {
|
||||
// Set Modified
|
||||
nmsChunk.setLightCorrect(true); // Set Modified
|
||||
@ -831,7 +830,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
|
||||
// send to player
|
||||
if (!set
|
||||
.getSideEffectSet()
|
||||
.shouldApply(SideEffect.LIGHTING) || !Settings.settings().LIGHTING.DELAY_PACKET_SENDING || finalMask == 0 && biomes != null) {
|
||||
.shouldApply(SideEffect.LIGHTING) || !Settings.settings().LIGHTING.DELAY_PACKET_SENDING || finalBitMask == 0 && biomes != null) {
|
||||
this.send();
|
||||
}
|
||||
if (finalizer != null) {
|
||||
|
@ -20,8 +20,8 @@ import javax.annotation.Nullable;
|
||||
public class PaperweightLevelProxy extends ServerLevel {
|
||||
|
||||
protected ServerLevel serverLevel;
|
||||
private PaperweightFaweAdapter adapter;
|
||||
private PaperweightPlacementStateProcessor processor;
|
||||
private PaperweightFaweAdapter adapter;
|
||||
|
||||
@SuppressWarnings("DataFlowIssue")
|
||||
private PaperweightLevelProxy() {
|
||||
|
@ -82,8 +82,8 @@ public class PaperweightPlacementStateProcessor extends PlacementStateProcessor
|
||||
new BlockHitResult(pos, side, blockPos, false),
|
||||
side.getOpposite()
|
||||
));
|
||||
return newState == null ? BlockTypesCache.ReservedIDs.AIR :
|
||||
adapter.ibdIDToOrdinal(Block.BLOCK_STATE_REGISTRY.getId(newState));
|
||||
return newState == null ? BlockTypesCache.ReservedIDs.AIR : adapter.ibdIDToOrdinal(Block.BLOCK_STATE_REGISTRY.getId(
|
||||
newState));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren