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)
- 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`

View File

@ -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(

View File

@ -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(