Commit 9e3f0e5
Respect ignore-center-block in the no-place-event block helpers
Addresses the Copilot review on #280: checkBlockLimit and addBlockCount
(used for the copper golem's chest, which appears without a place event)
bypassed the ignore-center-block exclusion that process() applies, so a
build at the island center could be limited or counted when a normal
placement there would not be.
The comparison also has to be by block coordinates: these helpers receive
entity spawn locations with fractional coordinates and yaw/pitch, which
never equal the block-aligned center Location. A shared predicate now
covers both helpers and processKey.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015dbJyrv2uxHfTmiWkqGUJB1 parent 4802d28 commit 9e3f0e5
2 files changed
Lines changed: 48 additions & 4 deletions
File tree
- src
- main/java/world/bentobox/limits/listeners
- test/java/world/bentobox/limits/listeners
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
475 | 491 | | |
476 | 492 | | |
477 | 493 | | |
| |||
483 | 499 | | |
484 | 500 | | |
485 | 501 | | |
486 | | - | |
487 | | - | |
| 502 | + | |
488 | 503 | | |
489 | 504 | | |
490 | 505 | | |
| |||
551 | 566 | | |
552 | 567 | | |
553 | 568 | | |
554 | | - | |
| 569 | + | |
555 | 570 | | |
556 | 571 | | |
557 | 572 | | |
| |||
573 | 588 | | |
574 | 589 | | |
575 | 590 | | |
576 | | - | |
| 591 | + | |
577 | 592 | | |
578 | 593 | | |
579 | 594 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1100 | 1129 | | |
1101 | 1130 | | |
1102 | 1131 | | |
| |||
0 commit comments