mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-24 05:54:41 +00:00
27 lines
1.3 KiB
Diff
27 lines
1.3 KiB
Diff
--- ../src_base/minecraft_server/net/minecraft/src/Explosion.java 0000-00-00 00:00:00.000000000 -0000
|
|
+++ ../src_work/minecraft_server/net/minecraft/src/Explosion.java 0000-00-00 00:00:00.000000000 -0000
|
|
@@ -3,6 +3,7 @@
|
|
// Decompiler options: packimports(3) braces deadcode fieldsfirst
|
|
|
|
package net.minecraft.src;
|
|
+import net.minecraft.src.forge.ISpecialResistance;
|
|
|
|
import java.util.*;
|
|
|
|
@@ -76,7 +77,14 @@
|
|
int k3 = worldObj.getBlockId(l2, i3, j3);
|
|
if(k3 > 0)
|
|
{
|
|
- f1 -= (Block.blocksList[k3].getExplosionResistance(exploder) + 0.3F) * f2;
|
|
+ if (Block.blocksList[k3] instanceof ISpecialResistance){
|
|
+ ISpecialResistance isr = (ISpecialResistance)Block.blocksList[k3];
|
|
+ f1 -= (isr.getSpecialExplosionResistance(worldObj, l2, i3, j3,
|
|
+ explosionX, explosionY, explosionZ, exploder) + 0.3F) * f2;
|
|
+ } else {
|
|
+ f1 -= (Block.blocksList[k3].getExplosionResistance(exploder) + 0.3F) * f2;
|
|
+ }
|
|
+
|
|
}
|
|
if(f1 > 0.0F)
|
|
{
|