mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-11-01 04:37:09 +00:00
2109ba025d
* Remove patch that is now in Paper * Redirect Paper's safe component method to ours
19 lines
1.1 KiB
Diff
19 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Luna <lunahatesgogle@gmail.com>
|
|
Date: Mon, 10 Apr 2023 13:56:18 -0300
|
|
Subject: [PATCH] Limit sculk catalyst cursor positions
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/SculkSpreader.java b/src/main/java/net/minecraft/world/level/block/SculkSpreader.java
|
|
index ab732f0e52ef3c3d3be6ddc827d693fe294e4167..9785f2d8c94552b4a1139fa6d936fdaa61e5827c 100644
|
|
--- a/src/main/java/net/minecraft/world/level/block/SculkSpreader.java
|
|
+++ b/src/main/java/net/minecraft/world/level/block/SculkSpreader.java
|
|
@@ -141,6 +141,7 @@ public class SculkSpreader {
|
|
Object2IntMap<BlockPos> object2IntMap = new Object2IntOpenHashMap<>();
|
|
|
|
for(SculkSpreader.ChargeCursor chargeCursor : this.cursors) {
|
|
+ if (!world.getMinecraftWorld().isLoadedAndInBounds(chargeCursor.getPos())) continue; // Scissors
|
|
chargeCursor.update(world, pos, random, this, shouldConvertToBlock);
|
|
if (chargeCursor.charge <= 0) {
|
|
world.levelEvent(3006, chargeCursor.getPos(), 0);
|