Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 2d12424

Browse files
Fixed Fissure (#11)
* Fixed Fissure - Fixed Fissure leaving a lava line in 1.11.0 * Fixed Lava immunity bug - Fixed LavaFlux not giving lava damage --------- Co-authored-by: Robbie Gorey <59033980+Aztlon@users.noreply.github.com>
1 parent d526b7b commit 2d12424

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.jedk1</groupId>
66
<artifactId>jedcore</artifactId>
7-
<version>2.12.2-Spigot1.16-PK1.10.2-BETA</version>
7+
<version>2.12.2-Spigot1.18-PK1.11.0</version>
88
<packaging>jar</packaging>
99
<name>JedCore</name>
1010

@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>com.github.ProjectKorra</groupId>
3333
<artifactId>ProjectKorra</artifactId>
34-
<version>v1.10.2</version>
34+
<version>v1.11.1</version>
3535
<scope>provided</scope>
3636
</dependency>
3737
</dependencies>

src/com/jedk1/jedcore/ability/earthbending/Fissure.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public class Fissure extends LavaAbility implements AddonAbility {
5353

5454
private final List<Location> centerSlap = new ArrayList<>();
5555
private final List<Block> blocks = new ArrayList<>();
56+
private final List<TempBlock> tempblocks = new ArrayList<>();
5657

5758
public Fissure(Player player) {
5859
super(player);
@@ -157,7 +158,7 @@ private boolean prepareLine() {
157158

158159
private void slapCenter() {
159160
for (Location location : centerSlap) {
160-
if (centerSlap.indexOf(location) <= slap) {
161+
if (centerSlap.indexOf(location) == slap) {
161162
addTempBlock(location.getBlock(), Material.LAVA);
162163
}
163164
}
@@ -235,7 +236,7 @@ private void addTempBlock(Block block, Material material) {
235236
if (DensityShift.isPassiveSand(block)) {
236237
DensityShift.revertSand(block);
237238
}
238-
new TempBlock(block, material.createBlockData());
239+
tempblocks.add(new TempBlock(block, material.createBlockData(), this));
239240
blocks.add(block);
240241
}
241242

@@ -263,17 +264,16 @@ public BlockFace getLeftBlockFace(BlockFace forward) {
263264
}
264265

265266
private void forceRevert() {
266-
for (Block block : blocks) {
267-
new RegenTempBlock(block, Material.STONE, Material.STONE.createBlockData(), 500 + (long) rand.nextInt((int) 1000));
268-
}
269267
coolLava();
270268
}
271269

272270
private void coolLava() {
271+
tempblocks.forEach(TempBlock::revertBlock);
273272
for (Block block : blocks) {
274-
new RegenTempBlock(block, Material.STONE, Material.STONE.createBlockData(), 500 + (long) rand.nextInt((int) 1000));
273+
new TempBlock(block, Material.STONE.createBlockData(), 500 + (long) rand.nextInt((int) 1000));
275274
}
276275
blocks.clear();
276+
tempblocks.clear();
277277
}
278278

279279
@Override

src/com/jedk1/jedcore/ability/earthbending/LavaFlux.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private void progressFlux() {
176176
for (Location location : flux) {
177177
if (flux.indexOf(location) <= step) {
178178
if (!blocks.containsKey(location.getBlock())) { //Make a new temp block if we haven't made one there before
179-
blocks.put(location.getBlock(), new TempBlock(location.getBlock(), LAVA, duration + cleanup));
179+
blocks.put(location.getBlock(), new TempBlock(location.getBlock(), LAVA, duration + cleanup, this));
180180
}
181181

182182
//new RegenTempBlock(location.getBlock(), Material.LAVA, LAVA, duration + cleanup);
@@ -189,15 +189,15 @@ private void progressFlux() {
189189
if (isPlant(above) || isSnow(above)) {
190190
final Block above2 = above.getRelative(BlockFace.UP);
191191
if (isPlant(above) || isSnow(above)) {
192-
TempBlock tb = new TempBlock(above, Material.AIR.createBlockData(), duration + cleanup);
192+
TempBlock tb = new TempBlock(above, Material.AIR.createBlockData(), duration + cleanup, this);
193193
this.above.put(above, tb);
194194
if (isPlant(above2) && above2.getBlockData() instanceof Bisected) {
195-
TempBlock tb2 = new TempBlock(above2, Material.AIR.createBlockData(), duration + cleanup + 30_000);
195+
TempBlock tb2 = new TempBlock(above2, Material.AIR.createBlockData(), duration + cleanup + 30_000, this);
196196
tb.addAttachedBlock(tb2);
197197
}
198198
}
199199
} else if (wave && isTransparent(above)) {
200-
new TempBlock(location.getBlock().getRelative(BlockFace.UP), LAVA, speed * 150L);
200+
new TempBlock(location.getBlock().getRelative(BlockFace.UP), LAVA, speed * 150L, this);
201201
}
202202
}
203203
}

0 commit comments

Comments
 (0)