mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-11-01 04:37:09 +00:00
20 lines
1.1 KiB
Diff
20 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 de90a216321f7d82310a0d1c915fefe64360534c..7e52f6c26234cf6fa092151d51c0c6b70dc22ca8 100644
|
|
--- a/src/main/java/net/minecraft/world/level/block/SculkSpreader.java
|
|
+++ b/src/main/java/net/minecraft/world/level/block/SculkSpreader.java
|
|
@@ -181,7 +181,7 @@ public class SculkSpreader {
|
|
|
|
while (iterator.hasNext()) {
|
|
SculkSpreader.ChargeCursor sculkspreader_a = (SculkSpreader.ChargeCursor) iterator.next();
|
|
-
|
|
+ if (!world.getMinecraftWorld().isLoadedAndInBounds(sculkspreader_a.getPos())) continue; // Scissors
|
|
sculkspreader_a.update(world, pos, random, this, shouldConvertToBlock);
|
|
if (sculkspreader_a.charge <= 0) {
|
|
world.levelEvent(3006, sculkspreader_a.getPos(), 0);
|