0.1.7
EnergonRelics/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2020-08-20 15:24:52 -04:00
parent 4ebb0279fe
commit 91fab233a4
3 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,8 @@
# Changelog
**Beta 0.1.7**
* Improve Industrial Laser Fire
**Beta 0.1.6**
* Improve Energy Teleporter Reliability

View File

@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
fabric_loader_version = 0.9.0+build.204
# Mod Properties
mod_version = 0.1.6
mod_version = 0.1.7
maven_group = com.thebrokenrail
# Dependencies

View File

@ -12,6 +12,7 @@ import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.damage.DamageSource;
import net.minecraft.entity.mob.CreeperEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.projectile.SmallFireballEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.util.math.BlockPos;
@ -50,10 +51,7 @@ public class IndustrialLaserBlock extends AbstractFieldBlock {
((CreeperEntity) entity).ignite();
} else if (entity instanceof LivingEntity) {
if (!entity.isFireImmune()) {
entity.setFireTicks(entity.getFireTicks() + 1);
if (entity.getFireTicks() == 0) {
entity.setOnFireFor(8);
}
entity.setOnFireFor(8);
entity.damage(DAMAGE_SOURCE, HardcodedConfig.INDUSTRIAL_LASER_BEAM_DAMAGE);
}