CraftBook Builds

CraftBook Builds

Sponsor
Apex Hosting
View last successful build
Branch#StatusChangesFinished
master#4961Success12 days ago
master#4959Success14 days ago
master#4958Success14 days ago
master#4956Success14 days ago
master#4953Successa month ago
master#4952Successa month ago
master#4951Success
  • Fast path for self-triggered IC thinks (#1379) (9424f868 by 59487370+rasmuskd@users.noreply.github.com)
    • Fast path for self-triggered IC thinks Every self-triggered IC paid for a full sign snapshot (getState), component serialization of all four lines and an IC id regex match on every think tick, even though the IC instance itself is cached. At 2000 STs that measured +3.4ms per tick with spikes to 100ms. The think handler now reuses the cached IC and family directly and only reruns the full setupIC verification once a second per IC; entries are only honoured while the IC remains in ICManager's cache, so break/unload invalidation is unchanged, and a sign edit is picked up within a second. Chunk-loaded lookups in the ST sweep are also memoised per pass, since clustered STs ask about the same few chunks thousands of times and a chunk cannot load or unload mid-sweep. Re-measured: 2000 active STs are indistinguishable from an idle server (50.5ms avg tick vs 50.3 baseline).
    • Drop the chunk-loaded memoisation isChunkLoaded is already a cheap map lookup on modern servers, so the cache traded one lookup for two plus boxing. The measured win came from skipping the sign snapshot and regex, which stays.
    • Use a Guava cache for the think fast path Review feedback: clearing the whole map at the limit churns every entry to make room for one, and on a server above the limit that puts every IC back on the slow path in waves - the cost the fast path exists to avoid. CacheBuilder with maximumSize evicts one entry instead, and expireAfterWrite replaces the hand-rolled deadline, so the value is just the ICFamily rather than an Object[] with a timestamp to unbox and compare. Guava caches are already used this way in ItemSyntax and ParsingUtil. Comment trimmed to what it is.
3 months ago
master#4950Success
  • Probe only the six direct faces when diagonal pipes are disabled (#1383) With allow-diagonal off (the default), every pipe block still walked all 27 neighbour offsets and skipped 21 of them one comparison at a time. The six cardinal faces are now probed directly, in the same order the full scan visited them, and the neighbour expansion is extracted into a method shared with the diagonal path. No behaviour change, just less work per pipe block. (3f58866f by 59487370+rasmuskd@users.noreply.github.com)
3 months ago
master#4949Success
  • Treat shelves as containers in pipes (#1376) (88df7572 by 59487370+rasmuskd@users.noreply.github.com)
    • Treat shelves as containers in pipes and inventory checks The shelf block entity implements Container, so vanilla hoppers insert into and extract from its three slots. This lets pipes do the same: wooden_shelves joins the container check and the pipe pull list, and insertion goes through the ordinary inventory path.
    • Collapse the duplicated container family into one predicate Adding shelves meant editing the same generic-container list in two places, the pipe pull check and doesBlockHaveInventory, which is how the two drift. hasGenericInventory now owns the family (plain item slots, safe to insert or pull generically); doesBlockHaveInventory is that family plus the four role-slot blocks whose callers route them through dedicated branches. The next container type lands in one place.
    • Detach pulled stacks from their slot, and resync shelf displays Two findings from testing shelves on a live 26.2 server. Some containers hand out a mirror of the slot from getContents, so removing the slot contents also empties the stack the pipe is carrying and the pull delivers air; pulled stacks are cloned before removal. And shelves render their contents but vanilla only resyncs the display on player interaction, so pipe mutations leave clients showing stale items until the chunk reloads; a state captured after the mutation is written back for shelf pulls and inserts. Capture order matters: updating a state from before the removals writes the old contents back into the world.
    • One sync point for display containers, and it fixes chiseled bookshelves Comparing the shelf handling against its nearest neighbour showed the same bug class has been sitting in chiseled bookshelves: a pipe edit lands in the inventory but the slot_X_occupied blockstate never moves, so the shelf renders wrong and the comparator signal lies. The two publish mechanisms differ (bookshelves use blockstate properties, shelves block-entity data), so syncDisp...
3 months ago
master#4948Success
  • Add the 1.21 brewing ingredients to the potion ingredient list (#1375) Breeze rod, slime block, cobweb and stone brew the wind charged, oozing, weaving and infested potions, but isAPotionIngredient predates them, so pipes refuse to load them into a brewing stand's ingredient slot. (b4fd68a0 by 59487370+rasmuskd@users.noreply.github.com)
3 months ago