Skip to content

Commit

Permalink
fix: rocket being destroyed on launch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaMode committed Jun 8, 2024
1 parent b3c3288 commit abfe283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public float getMaxDamage() {
return 40.0F;
}

boolean shouldSourceDestroy(DamageSource source) {
protected boolean shouldSourceDestroy(DamageSource source) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ public void tick() {
gcPlayer.setRocketData(this);
gcPlayer.setLaunchpadStack(new ItemStack(GCBlocks.ROCKET_LAUNCH_PAD, 9));
}
this.linkedPad.setDockedEntity(null);
for (int x = -1; x <= 1; x++) {
for (int z = -1; z <= 1; z++) {
if (level().getBlockState(getLinkedPad().offset(x, 0, z)).getBlock() == GCBlocks.ROCKET_LAUNCH_PAD
Expand Down

0 comments on commit abfe283

Please sign in to comment.