Skip to content

Conversation

BenCheung0422
Copy link
Member

This fixes #744.

Basically, EntitySummonItem was not correcting implementing a subclass of StackableItem where its subclasses should always invoke StackableItem#interactOn(boolean) (at least when true for it to work properly) in their overrides of the interactOn method. Also, I discovered that it does not check whether the placing target is solid (blocking) to the entity, so that players may pass through a solid tile by placing a boat on it.

The code content is not perfect as a solution due to the codebase (and class) structures, but should be sufficient to solve those bugs. What I meant by this is that it should be more polymorphic and whatever, so that duplicated attributes may not have to be repeated (using configuring/attributive/etc. objects) and dummy objects may not be used.

BenCheung0422 and others added 2 commits July 28, 2025 06:02
Not perfect but should be sufficient
"Blocks" means blocking tiles with respect with the target entity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Boat dupes when placing
2 participants