mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-11-01 12:37:10 +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 01e13e6d3ebd84cff0019f56efff16747420dc95..d4058bc31ca291cbc95eeef594fc35e1ff6a3dde 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);
|