diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2017-04-01 15:08:43 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-04-01 15:08:43 +1000 |
commit | 15ebb1c5929f95aa78e14cbc789975c29e82d358 (patch) | |
tree | 87b932043b35f0a6a177bd53249faba974ef8b7a /src | |
parent | 4f8ad23e966c4228f1d5b6700b02b1d058314cb3 (diff) | |
download | GT5-Unofficial-15ebb1c5929f95aa78e14cbc789975c29e82d358.tar.gz GT5-Unofficial-15ebb1c5929f95aa78e14cbc789975c29e82d358.tar.bz2 GT5-Unofficial-15ebb1c5929f95aa78e14cbc789975c29e82d358.zip |
$ Fixed Hellish Fire not setting entities on fire.
% Changed particles emitted from Hellish Fire.
Diffstat (limited to 'src')
-rw-r--r-- | src/Java/gtPlusPlus/core/block/general/HellFire.java | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/src/Java/gtPlusPlus/core/block/general/HellFire.java b/src/Java/gtPlusPlus/core/block/general/HellFire.java index cfb6a1747c..39c0ef9c86 100644 --- a/src/Java/gtPlusPlus/core/block/general/HellFire.java +++ b/src/Java/gtPlusPlus/core/block/general/HellFire.java @@ -20,6 +20,7 @@ import net.minecraft.block.Block; import net.minecraft.block.BlockFire; import net.minecraft.block.material.MapColor; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; import net.minecraft.init.Blocks; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; @@ -72,7 +73,7 @@ public class HellFire extends BlockFire { */ @Override public void updateTick(final World world, final int x, final int y, final int z, Random random) { - + random = new XSTR(); if (world.getGameRules().getGameRuleBooleanValue("doFireTick")) { @@ -277,6 +278,18 @@ public class HellFire extends BlockFire { } } } + + //Burn + @Override + public void onEntityWalking(World world, int i, int j, int k, Entity entity) { + entity.setFire(10); + } + + //Burn + @Override + public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity) { + entity.setFire(10); + } /** * A randomly called display update to be able to add particles or other @@ -305,7 +318,7 @@ public class HellFire extends BlockFire { f = x + (randomObj.nextFloat() * 0.1F); f1 = y + randomObj.nextFloat(); f2 = z + randomObj.nextFloat(); - world.spawnParticle("largesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); + world.spawnParticle("hugesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); } } @@ -314,7 +327,7 @@ public class HellFire extends BlockFire { f = (x + 1) - (randomObj.nextFloat() * 0.1F); f1 = y + randomObj.nextFloat(); f2 = z + randomObj.nextFloat(); - world.spawnParticle("largesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); + world.spawnParticle("hugesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); } } @@ -323,7 +336,7 @@ public class HellFire extends BlockFire { f = x + randomObj.nextFloat(); f1 = y + randomObj.nextFloat(); f2 = z + (randomObj.nextFloat() * 0.1F); - world.spawnParticle("largesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); + world.spawnParticle("hugesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); } } @@ -332,7 +345,7 @@ public class HellFire extends BlockFire { f = x + randomObj.nextFloat(); f1 = y + randomObj.nextFloat(); f2 = (z + 1) - (randomObj.nextFloat() * 0.1F); - world.spawnParticle("largesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); + world.spawnParticle("hugesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); } } @@ -341,16 +354,16 @@ public class HellFire extends BlockFire { f = x + randomObj.nextFloat(); f1 = (y + 1) - (randomObj.nextFloat() * 0.1F); f2 = z + randomObj.nextFloat(); - world.spawnParticle("largesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); + world.spawnParticle("hugesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); } } } else { - for (l = 0; l < 3; ++l) { + for (l = 0; l < 5; ++l) { f = x + randomObj.nextFloat(); f1 = y + (randomObj.nextFloat() * 0.5F) + 0.5F; f2 = z + randomObj.nextFloat(); - world.spawnParticle("largesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); + world.spawnParticle("hugesmoke", f, f1, f2, 0.0D, 0.0D, 0.0D); } } } |