fix: red matter and condensed explosives now destroy blocks

This commit is contained in:
LordMZTE 2022-11-12 16:11:53 +01:00
parent ee1862ca0c
commit cc4595f781
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
3 changed files with 5 additions and 5 deletions

View file

@ -2,9 +2,7 @@
- missing packets (mostly gui stuff) - missing packets (mostly gui stuff)
- EMP tower drops nonsense - EMP tower drops nonsense
- no proper update on multiblock destroy - no proper update on multiblock destroy
- condensed explosives doesn't break blocks and explodes instantly
- can push explosive entities - can push explosive entities
- flying blocks dont properly render - flying blocks dont properly render
- black hole doesn't suck in blocks
- see `// TODO: WTF` - see `// TODO: WTF`

View file

@ -61,7 +61,9 @@ public class ExCondensed extends ZhaPin {
final Block block final Block block
= worldObj.getBlock(var19, var20, var21); = worldObj.getBlock(var19, var20, var21);
if (block == Blocks.air) { System.out.println("AAAAAAAAAAAALEC: " + var19 + " " + var20 + " " + var21);
if (block != Blocks.air) {
var14 -= (block.getExplosionResistance( var14 -= (block.getExplosionResistance(
explosionSource, explosionSource,
worldObj, worldObj,
@ -136,7 +138,7 @@ public class ExCondensed extends ZhaPin {
); );
worldObj.spawnParticle("smoke", var28, var29, var30, var31, var32, var33); worldObj.spawnParticle("smoke", var28, var29, var30, var31, var32, var33);
if (block == Blocks.air) { if (block != Blocks.air) {
try { try {
if (block.canDropFromExplosion((Explosion) null)) { if (block.canDropFromExplosion((Explosion) null)) {
block.dropBlockAsItemWithChance( block.dropBlockAsItemWithChance(

View file

@ -72,7 +72,7 @@ public class ExRedMatter extends ZhaPin {
currentPos.intZ() currentPos.intZ()
); );
if (block != null) { if (block != Blocks.air) {
if (block instanceof IForceFieldBlock) { if (block instanceof IForceFieldBlock) {
((IForceFieldBlock) block) ((IForceFieldBlock) block)
.weakenForceField( .weakenForceField(