generated from tilera/1710mod
fix: red matter and condensed explosives now destroy blocks
This commit is contained in:
parent
ee1862ca0c
commit
cc4595f781
|
@ -2,9 +2,7 @@
|
|||
- missing packets (mostly gui stuff)
|
||||
- EMP tower drops nonsense
|
||||
- no proper update on multiblock destroy
|
||||
- condensed explosives doesn't break blocks and explodes instantly
|
||||
- can push explosive entities
|
||||
- flying blocks dont properly render
|
||||
- black hole doesn't suck in blocks
|
||||
|
||||
- see `// TODO: WTF`
|
||||
|
|
|
@ -61,7 +61,9 @@ public class ExCondensed extends ZhaPin {
|
|||
final Block block
|
||||
= worldObj.getBlock(var19, var20, var21);
|
||||
|
||||
if (block == Blocks.air) {
|
||||
System.out.println("AAAAAAAAAAAALEC: " + var19 + " " + var20 + " " + var21);
|
||||
|
||||
if (block != Blocks.air) {
|
||||
var14 -= (block.getExplosionResistance(
|
||||
explosionSource,
|
||||
worldObj,
|
||||
|
@ -136,7 +138,7 @@ public class ExCondensed extends ZhaPin {
|
|||
);
|
||||
worldObj.spawnParticle("smoke", var28, var29, var30, var31, var32, var33);
|
||||
|
||||
if (block == Blocks.air) {
|
||||
if (block != Blocks.air) {
|
||||
try {
|
||||
if (block.canDropFromExplosion((Explosion) null)) {
|
||||
block.dropBlockAsItemWithChance(
|
||||
|
|
|
@ -72,7 +72,7 @@ public class ExRedMatter extends ZhaPin {
|
|||
currentPos.intZ()
|
||||
);
|
||||
|
||||
if (block != null) {
|
||||
if (block != Blocks.air) {
|
||||
if (block instanceof IForceFieldBlock) {
|
||||
((IForceFieldBlock) block)
|
||||
.weakenForceField(
|
||||
|
|
Loading…
Reference in New Issue