Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITNT and Powder Barrel fix #2354

Draft
wants to merge 2 commits into
base: 1.20.1
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public abstract class GTExplosiveEntity extends PrimedTnt {
public abstract class GTExplosiveEntity extends PrimedTnt {

public GTExplosiveEntity(EntityType<? extends GTExplosiveEntity> type, Level level, double x, double y, double z,
@Nullable LivingEntity owner) {
Expand Down Expand Up @@ -49,7 +49,7 @@ public GTExplosiveEntity(EntityType<? extends GTExplosiveEntity> type, Level wor
/**
* @return The range of the explosive, if {@link #dropsAllBlocks} is true.
*/
protected int getRange() {
public int getRange() {
return 2;
}

Expand All @@ -71,7 +71,7 @@ protected void explode(
x, y, z,
radius,
false,
dropBlocks ? Explosion.BlockInteraction.DESTROY_WITH_DECAY : Explosion.BlockInteraction.DESTROY);
dropBlocks ? Explosion.BlockInteraction.KEEP : Explosion.BlockInteraction.DESTROY_WITH_DECAY);
if (!ForgeEventFactory.onExplosionStart(level, explosion)) {
explosion.explode();
explosion.finalizeExplosion(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public boolean dropsAllBlocks() {
}

@Override
protected int getRange() {
public int getRange() {
return 3;
}

Expand Down
Loading