Skip to content

Commit

Permalink
Update to MachineVoidAir.java (#538)
Browse files Browse the repository at this point in the history
Makes the MachineVoidAir impossible to remove, should fix mods like Building Gadgets from destroying it.
  • Loading branch information
RealMangorage authored Aug 8, 2022
1 parent 49df5dd commit fc92b75
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.material.Material;
import net.minecraft.world.level.block.Block;

import static dev.compactmods.machines.CompactMachines.MOD_ID;

Expand All @@ -23,7 +24,7 @@ public class MachineVoidAir extends AirBlock {
final public static DamageSource DAMAGE_SOURCE = new DamageSource(MOD_ID + "_voidair");

public MachineVoidAir() {
super(BlockBehaviour.Properties.of(Material.AIR).noCollission().noDrops().air());
super(BlockBehaviour.Properties.of(Material.BARRIER).noCollission().noDrops().air().strength(Block.INDESTRUCTIBLE));
}


Expand Down

0 comments on commit fc92b75

Please sign in to comment.