Skip to content

Commit

Permalink
feat: fire can prime tnt now
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jan 16, 2025
1 parent c22a95c commit 2cc3643
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Unless otherwise specified, any version comparison below is the comparison of se
customize the drag factor of an entity.
- (API) Introduced event `EntityExplodeEvent` which will be called when tnt or creeper(WIP) is about to explode.
- (API) Introduced method `EntityBaseComponent#isTouchingWater` to check if an entity is touching water.
- (API) Implemented TNT entity and block. Several related interfaces are added to api module.
- (API) Implemented TNT entity, block and related features. Several related interfaces are added to api module.
- Implemented trapdoor except redstone feature (Redstone feature requires the implementation of redstone system).
- Implemented sponge and wet sponge.
- Implemented farmland and hoe.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,9 @@ protected void burnBlock(BlockStateWithPos source, BlockStateWithPos target, int
}
}

// TODO: prime tnt
// if (block instanceof BlockTnt blockTnt) {
// blockTnt.prime();
// }
if (targetBlockState.getBlockType() == BlockTypes.TNT) {
BlockTypes.TNT.getBlockBehavior().prime(target);
}
}
}

Expand Down

0 comments on commit 2cc3643

Please sign in to comment.