Skip to content

Commit

Permalink
LightAPI: common: Use DEFERRED policy by default
Browse files Browse the repository at this point in the history
Change-Id: If6dab28595672f214b54a731c033941f1a0d6cee
  • Loading branch information
BeYkeRYkt committed Oct 31, 2021
1 parent f7282ef commit 866c000
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static boolean createLight(String worldName, ru.beykerykt.minecraft.light
lightFlags = LightFlag.SKY_LIGHTING;
}
int resultCode = get().setLightLevel(worldName, blockX, blockY, blockZ, lightlevel, lightFlags,
EditPolicy.IMMEDIATE, SendPolicy.DEFERRED, (requestFlag, resultCode1) -> {
EditPolicy.DEFERRED, SendPolicy.DEFERRED, (requestFlag, resultCode1) -> {
if (callback != null) {
LStage stage = LStage.CREATING;
switch (requestFlag) {
Expand Down Expand Up @@ -177,7 +177,7 @@ public static boolean deleteLight(String worldName, ru.beykerykt.minecraft.light
if (type == ru.beykerykt.minecraft.lightapi.common.LightType.SKY) {
lightFlags = LightFlag.SKY_LIGHTING;
}
int resultCode = get().setLightLevel(worldName, blockX, blockY, blockZ, 0, lightFlags, EditPolicy.IMMEDIATE,
int resultCode = get().setLightLevel(worldName, blockX, blockY, blockZ, 0, lightFlags, EditPolicy.DEFERRED,
SendPolicy.DEFERRED, (requestFlag, resultCode1) -> {
if (callback != null) {
LStage stage = LStage.DELETING;
Expand Down

0 comments on commit 866c000

Please sign in to comment.