This commit is contained in:
gnembon committed 2023-05-03 22:09:14 +02:00
1 parent 9cae675ede
commit cac97b5127
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -3,10 +3,10 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check https://fabricmc.net/develop/ # check https://fabricmc.net/develop/
minecraft_version=23w17a minecraft_version=23w18a
loader_version=0.14.19 loader_version=0.14.19
jsr305_version=3.0.2 jsr305_version=3.0.2
fabric_version=0.79.1+1.20 fabric_version=0.80.1+1.20
# Mod Properties # Mod Properties
mod_version = 1.4.106 mod_version = 1.4.106
@@ -18,7 +18,7 @@ public abstract class LayerLightEngine_scarpetChunkCreationMixin implements Ligh
@Final @Final
protected LayerLightSectionStorage<?> storage; protected LayerLightSectionStorage<?> storage;
@Shadow protected abstract void clearQueuedSectionBlocks(final long l); //@Shadow protected abstract void clearQueuedSectionBlocks(final long l);
@Override @Override
public void removeLightData(final long pos) public void removeLightData(final long pos)
@@ -40,6 +40,6 @@ public abstract class LayerLightEngine_scarpetChunkCreationMixin implements Ligh
@Override @Override
public void clearQueuedSectionBlocksPublicAccess(long sectionPos) public void clearQueuedSectionBlocksPublicAccess(long sectionPos)
{ {
clearQueuedSectionBlocks(sectionPos); //clearQueuedSectionBlocks(sectionPos);
} }
} }
@@ -82,7 +82,7 @@ public abstract class LayerLightSectionStorage_scarpetChunkCreationMixin impleme
if (this.storingLightForSection(sectionPos)) if (this.storingLightForSection(sectionPos))
{ {
((Lighting_scarpetChunkCreationInterface)lightProvider).clearQueuedSectionBlocksPublicAccess(sectionPos); //((Lighting_scarpetChunkCreationInterface)lightProvider).clearQueuedSectionBlocksPublicAccess(sectionPos);
if (this.changedSections.add(sectionPos)) if (this.changedSections.add(sectionPos))
this.updatingSectionData.copyDataLayer(sectionPos); this.updatingSectionData.copyDataLayer(sectionPos);
@@ -54,7 +54,7 @@ public class ServerPlayerGameMode_scarpetEventsMixin implements ServerPlayerInte
@Inject(method = "useItemOn", at = @At( @Inject(method = "useItemOn", at = @At(
value = "INVOKE", value = "INVOKE",
target = "Lnet/minecraft/advancements/critereon/ItemInteractWithBlockTrigger;trigger(Lnet/minecraft/server/level/ServerPlayer;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/item/ItemStack;)V", target = "Lnet/minecraft/advancements/critereon/ItemUsedOnLocationTrigger;trigger(Lnet/minecraft/server/level/ServerPlayer;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/item/ItemStack;)V",
shift = At.Shift.BEFORE shift = At.Shift.BEFORE
)) ))
private void onBlockActivated(ServerPlayer serverPlayerEntity, Level world, ItemStack stack, InteractionHand hand, BlockHitResult hitResult, CallbackInfoReturnable<InteractionResult> cir) private void onBlockActivated(ServerPlayer serverPlayerEntity, Level world, ItemStack stack, InteractionHand hand, BlockHitResult hitResult, CallbackInfoReturnable<InteractionResult> cir)