This commit is contained in:
parent
4ebb0279fe
commit
91fab233a4
@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**Beta 0.1.7**
|
||||||
|
* Improve Industrial Laser Fire
|
||||||
|
|
||||||
**Beta 0.1.6**
|
**Beta 0.1.6**
|
||||||
* Improve Energy Teleporter Reliability
|
* Improve Energy Teleporter Reliability
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
|
|||||||
fabric_loader_version = 0.9.0+build.204
|
fabric_loader_version = 0.9.0+build.204
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.1.6
|
mod_version = 0.1.7
|
||||||
maven_group = com.thebrokenrail
|
maven_group = com.thebrokenrail
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -12,6 +12,7 @@ import net.minecraft.entity.LivingEntity;
|
|||||||
import net.minecraft.entity.damage.DamageSource;
|
import net.minecraft.entity.damage.DamageSource;
|
||||||
import net.minecraft.entity.mob.CreeperEntity;
|
import net.minecraft.entity.mob.CreeperEntity;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.entity.projectile.SmallFireballEntity;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.Items;
|
import net.minecraft.item.Items;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
@ -50,10 +51,7 @@ public class IndustrialLaserBlock extends AbstractFieldBlock {
|
|||||||
((CreeperEntity) entity).ignite();
|
((CreeperEntity) entity).ignite();
|
||||||
} else if (entity instanceof LivingEntity) {
|
} else if (entity instanceof LivingEntity) {
|
||||||
if (!entity.isFireImmune()) {
|
if (!entity.isFireImmune()) {
|
||||||
entity.setFireTicks(entity.getFireTicks() + 1);
|
entity.setOnFireFor(8);
|
||||||
if (entity.getFireTicks() == 0) {
|
|
||||||
entity.setOnFireFor(8);
|
|
||||||
}
|
|
||||||
|
|
||||||
entity.damage(DAMAGE_SOURCE, HardcodedConfig.INDUSTRIAL_LASER_BEAM_DAMAGE);
|
entity.damage(DAMAGE_SOURCE, HardcodedConfig.INDUSTRIAL_LASER_BEAM_DAMAGE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user