mirror of
https://github.com/BX-Team/DivineMC.git
synced 2026-01-06 15:41:52 +00:00
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@efc76215 Add missing copper blocks to waxables and weatherables options (#1712) PurpurMC/Purpur@3ca0d663 Updated Upstream (Paper) PurpurMC/Purpur@917675d0 Updated Upstream (Paper) PurpurMC/Purpur@ffe2f809 Add option to disable Warden Sonic Boom (#1713)
29 lines
1.6 KiB
Diff
29 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: NONPLAYT <76615486+NONPLAYT@users.noreply.github.com>
|
|
Date: Thu, 10 Jul 2025 04:31:46 +0300
|
|
Subject: [PATCH] Crafter 1gt delay
|
|
|
|
|
|
diff --git a/net/minecraft/world/level/block/CrafterBlock.java b/net/minecraft/world/level/block/CrafterBlock.java
|
|
index 6dd3c0f60b04bc690ebd4a33ec57ef806961ee32..dad8035aff94854eadeb454ef60e6c90dbb31d1e 100644
|
|
--- a/net/minecraft/world/level/block/CrafterBlock.java
|
|
+++ b/net/minecraft/world/level/block/CrafterBlock.java
|
|
@@ -75,7 +75,7 @@ public class CrafterBlock extends BaseEntityBlock {
|
|
boolean triggeredValue = state.getValue(TRIGGERED);
|
|
BlockEntity blockEntity = level.getBlockEntity(pos);
|
|
if (hasNeighborSignal && !triggeredValue) {
|
|
- level.scheduleTick(pos, this, 4);
|
|
+ level.scheduleTick(pos, this, !org.bxteam.divinemc.config.DivineConfig.MiscCategory.copperBulb1gt ? 4 : 1); // DivineMC - Crafter 1gt delay
|
|
level.setBlock(pos, state.setValue(TRIGGERED, true), 2);
|
|
this.setBlockEntityTriggered(blockEntity, true);
|
|
} else if (!hasNeighborSignal && triggeredValue) {
|
|
@@ -125,7 +125,7 @@ public class CrafterBlock extends BaseEntityBlock {
|
|
@Override
|
|
public void setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) {
|
|
if (state.getValue(TRIGGERED)) {
|
|
- level.scheduleTick(pos, this, 4);
|
|
+ level.scheduleTick(pos, this, !org.bxteam.divinemc.config.DivineConfig.MiscCategory.copperBulb1gt ? 4 : 1); // DivineMC - Crafter 1gt delay
|
|
}
|
|
}
|
|
|