Commit Graph

186 Commits

Author SHA1 Message Date
Bjarne Koll 7b4d44f573 Revert "Always pass event block to damage source (#12158)"
This reverts commit ab984a0711.

The block damage is null *and has been* null in cases where the block
has already been cleared. Consumers are supposed to use the
getDamagerBlockState instead.
2025-02-21 11:52:04 +01:00
Bjarne Koll ab984a0711 Always pass event block to damage source (#12158)
Always passes the respective block to a damage source when passing a
block state. While we could technically use the damageSourcePosition
here by, we'd have to translate it back to a block position by
subtracting .5 from all its components.
Such behaviour however relies on the caller logic's mutation of the
damageSourcePosition and will break once this position is not the centre
of the block.

Passing in the block at the specific callsite is a lot more future
proof.
2025-02-20 20:22:46 +01:00
Epic e494f2894e Correctly call BlockFadeEvents (#12141) 2025-02-18 00:19:30 +01:00
Dqu1J fd69140d80 Fix disable-tripwire-updates option not cancelling tripwire hook updates (#12129) 2025-02-17 20:07:02 +01:00
Miles 8eb8e44ac3 Allow For Default Titles in InventoryView Builders (#12013) 2025-02-16 23:07:00 +01:00
Lulu13022002 7bee99714a Cleanup damage source a bit (#12106) 2025-02-16 20:14:00 +01:00
Warrior e616498ed7 Add Vault block API (#12068) 2025-02-12 23:15:22 +01:00
Owen fa5824e4c8 Add skipTripwireHookPlacementValidation (#12091)
This allows for the configuration of tripwire hook duping.
2025-02-10 23:04:38 +01:00
masmc05 786ddf53c6 Default piston block entity direction to DOWN (#12039) 2025-02-08 20:17:45 +01:00
Warrior 5395ae37bd Fix composter block setting bukkit owner twice (#12058) 2025-02-02 22:38:01 +01:00
Lulu13022002 d4a957849c Experimental annotation changes (#12028) 2025-01-30 20:02:14 +01:00
Creeam 81bb82f521 Fix wrong piston world border check (#12007) 2025-01-25 21:13:21 +01:00
Pedro 73f7736eb9 Drop patch for MC-273635 fixed in MC 1.21.4 (#11987) 2025-01-18 14:30:13 +01:00
Lulu13022002 2ea6aee343 Deprecate Turtle#isDigging (#11959) 2025-01-12 12:49:25 -08:00
Bjarne Koll e5542cfdc3 Hide unnecessary decorated pot data (#11957)
Prevent decorated pots from sending their contents to clients as
contents are not needed for rendering.
2025-01-12 17:49:49 +01:00
Bjarne Koll 1b38f2810e Fix reading recipes used on furnace (#11947) 2025-01-10 19:49:58 +01:00
Pedro 33a590bca6 Fix TargetHitEvent#getSignalStrength() post-hard-fork (#11897) 2025-01-04 21:30:41 +01:00
Nassim Jahnke 2b73d1957c More var name fixes 2024-12-27 13:45:04 +01:00
Nassim Jahnke c530c39f4e More var name fixes 2024-12-27 12:31:54 +01:00
Lulu13022002 f51aa3e3e1 Fix BlockRedstoneEvent for tripwire hooks (#11791) 2024-12-26 19:42:03 +01:00
Lulu13022002 9e2d39cd26 Fix double chest identification (#11812) 2024-12-24 22:57:24 +01:00
Nassim Jahnke aa2c52baac Fix dropper inventory var 2024-12-23 20:21:31 +01:00
Lulu13022002 c76809973b Fix tripwires (#11790) 2024-12-23 19:14:35 +01:00
Nassim Jahnke 70ef43b8dd More cleanup of var names 2024-12-21 15:53:00 +01:00
Owen1212055 2935905ced Small sculk cleanup
Don't check for empty items anymore in FishingHook.

Removes some diff + we handle it gracefully in add fresh entity
2024-12-19 20:44:24 -05:00
Lulu13022002 25a7793b9c drop duplicate block update 2024-12-19 22:12:09 +01:00
Lulu13022002 1f86b55302 reapply SummonEntityEffect 2024-12-19 21:29:31 +01:00
Lulu13022002 5922e6334b fix allowPermanentBlockBreakExploits config 2024-12-18 23:35:47 +01:00
Lulu13022002 6126012369 readd beacon effect cause 2024-12-18 19:29:39 +01:00
Nassim Jahnke dedc6b3394 Fix more diffs in block package 2024-12-18 13:24:47 +01:00
Nassim Jahnke 71bcc8c845 Fix diffs in block package 2024-12-18 13:00:21 +01:00
Nassim Jahnke a5e786a578 Add back missing hunk in AbstractFurnaceBlockEntity 2024-12-18 12:36:30 +01:00
Lulu13022002 783b3b70e6 readd dropped event in InteractWithDoor 2024-12-16 17:29:46 +01:00
Jake Potrebic cb51a4fbcd more compile fixes 2024-12-15 14:12:59 -08:00
Lulu13022002 ec57b99bf5 readd removal cause for thrown eggs 2024-12-15 23:07:15 +01:00
MiniDigger | Martin 8f1dcdd0b7 update restamp, add back entity ATs, rebuild patches 2024-12-15 22:39:52 +01:00
Nassim Jahnke 6dcb4a33b6 Fix some compilation errors 2024-12-15 21:28:08 +01:00
Lulu13022002 62b6e85d1a prevent duplicate EntityInsideBlockEvent in fire 2024-12-15 19:57:44 +01:00
Lulu13022002 56e3949c61 call the right damage event for conduit damages 2024-12-15 18:57:22 +01:00
Lulu13022002 a5b1875b2d readd conduit effect cause 2024-12-15 18:47:15 +01:00
Lulu13022002 7b4afa8b82 readd EntityInsideBlockEvent for pitcher crop 2024-12-15 17:27:42 +01:00
Lulu13022002 da1947b2ad readd chorus flower events 2024-12-15 16:48:03 +01:00
Lulu13022002 46eccd8c7d readd cactus config 2024-12-15 16:40:47 +01:00
Jake Potrebic 172a80cb66 Somehow a bunch of items were missed 2024-12-14 22:35:35 -08:00
Jake Potrebic 0262d9a165 fix a bunch of compile issues 2024-12-14 20:15:49 -08:00
Jake Potrebic e9680a5afe partial: net.minecraft.world.level.block 2024-12-14 18:33:16 -08:00
Owen1212055 b16f6f533a net/minecraft/world/level/block/a-r 2024-12-14 21:31:12 -05:00
Owen1212055 97043e3e5b net/minecraft/world/level/block/piston/ 2024-12-14 16:24:09 -05:00
Jake Potrebic 004ee8651c net.minecraft.world.effect 2024-12-14 13:12:42 -08:00
Jake Potrebic 8ec3dedfbd net.minecraft.world.level.block.grower 2024-12-14 13:03:13 -08:00