1.2.7
SorceryCraft/pipeline/head This commit looks good Details

Fix Cooling Spell Bug
This commit is contained in:
TheBrokenRail 2020-03-25 16:19:41 -04:00
parent 6b3445e1f6
commit 114c3a03d2
3 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# Changelog
**1.2.7**
* Fix Cooling Spell Bug
**1.2.6**
* Fix Potential Client-Server De-sync Bug

View File

@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
fabric_loader_version = 0.7.8+build.189
# Mod Properties
mod_version = 1.2.6
mod_version = 1.2.7
maven_group = com.thebrokenrail
archives_base_name = sorcerycraft

View File

@ -27,7 +27,7 @@ public class CoolingSpell extends Spell {
if (world.getBlockState(blockPos).isIn(BlockTags.FIRE)) {
world.removeBlock(blockPos, false);
}
if (world.getBlockState(blockPos).get(Properties.LIT)) {
if (world.getBlockState(blockPos).contains(Properties.LIT) && world.getBlockState(blockPos).get(Properties.LIT)) {
world.setBlockState(blockPos, world.getBlockState(blockPos).with(Properties.LIT, false));
}