mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-20 09:59:33 +00:00
Fixed dodgy HeatControl melt on non-TempBlocks (#699)
This commit is contained in:
parent
7e4ef6d5a2
commit
36c4094ed6
1 changed files with 1 additions and 2 deletions
|
@ -28,7 +28,6 @@ import com.projectkorra.projectkorra.util.ParticleEffect;
|
||||||
import com.projectkorra.projectkorra.util.TempBlock;
|
import com.projectkorra.projectkorra.util.TempBlock;
|
||||||
import com.projectkorra.projectkorra.waterbending.SurgeWave;
|
import com.projectkorra.projectkorra.waterbending.SurgeWave;
|
||||||
import com.projectkorra.projectkorra.waterbending.Torrent;
|
import com.projectkorra.projectkorra.waterbending.Torrent;
|
||||||
import com.projectkorra.projectkorra.waterbending.WaterManipulation;
|
|
||||||
import com.projectkorra.projectkorra.waterbending.WaterSpoutWave;
|
import com.projectkorra.projectkorra.waterbending.WaterSpoutWave;
|
||||||
import com.projectkorra.projectkorra.waterbending.combo.WaterCombo;
|
import com.projectkorra.projectkorra.waterbending.combo.WaterCombo;
|
||||||
import com.projectkorra.projectkorra.waterbending.ice.PhaseChange;
|
import com.projectkorra.projectkorra.waterbending.ice.PhaseChange;
|
||||||
|
@ -319,7 +318,7 @@ public class HeatControl extends FireAbility {
|
||||||
WaterSpoutWave.thaw(block);
|
WaterSpoutWave.thaw(block);
|
||||||
WaterCombo.thaw(block);
|
WaterCombo.thaw(block);
|
||||||
|
|
||||||
if (isMeltable(block) && !TempBlock.isTempBlock(block) && WaterManipulation.canPhysicsChange(block)) {
|
if (isMeltable(block) && !TempBlock.isTempBlock(block)) {
|
||||||
if (block.getType() == Material.SNOW) {
|
if (block.getType() == Material.SNOW) {
|
||||||
block.setType(Material.AIR);
|
block.setType(Material.AIR);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue