a30b1fb6d5
Inventory: Add failing test case for itemstack NBT duplication
2019-03-03 11:11:33 +00:00
2bffd5cc1c
Add timer measurements for autosave
2019-03-02 18:20:25 +00:00
382488dd07
sync locale submodule
2019-03-02 17:20:37 +00:00
808259dccd
Introduce CancellableClosureTask
...
before anyone picks a fight about the naming, take it up with shoghi... let's be consistently wrong at least
2019-03-02 10:45:01 +00:00
6c8fa8ae28
More nullable and void typehints
2019-03-02 10:29:11 +00:00
1f5c901f29
ext-ds is now required
2019-03-01 20:03:16 +00:00
418d0f12fb
Slab: placement logic clean up
...
past me was full of shit, because blockReplace is the same as blockClicked when we click a single slab top/bottom to make a double slab, and the logic is identical to the below block with that in mind.
2019-03-01 19:15:24 +00:00
d961b272c7
Remove Tool <-> Block circular dependency in efficiency calculation
2019-03-01 18:18:56 +00:00
72233a509d
preprocessor fix
2019-03-01 18:08:03 +00:00
e9125af51d
Revamp Banner API (still rather ghetto)
...
this needs more work, like signs do.
2019-03-01 17:57:07 +00:00
80ac0180b3
Remove redundant isAffectedBySilkTouch() overrides
...
this was needed previously to prevent dropping blockitems when these blocks were destroyed. Now the item form is always yielded instead.
2019-03-01 13:34:32 +00:00
12dfcc9eb6
Banner: Sort lines lexicographically ascending
2019-03-01 11:06:42 +00:00
1e9e179ec0
Fixed Block consistency check failure since 943906cc6b
2019-03-01 08:24:25 +00:00
741d061415
NoteBlock: added //TODO
2019-02-28 19:59:33 +00:00
943906cc6b
Partial comparator implementation
...
this supports placement, toggling compare/subtract mode, simple stuff. No redstone functionality yet.
This is needed for blockstate mapping in blockfactory.
2019-02-28 19:26:47 +00:00
7b23baa020
FlowerPot: yield contained plant when block-picking
2019-02-28 17:49:48 +00:00
97a1d997e8
ItemFrame: yield framed item when block-picking, fixes [1] in #2706
2019-02-28 17:47:32 +00:00
d679fb7546
Block: Rename onActivate() -> onInteract()
2019-02-28 17:35:30 +00:00
c9eb642afd
PacketPool: missing @throws
2019-02-28 17:15:06 +00:00
08e799c35a
Once again... add a missing file...
2019-02-28 17:14:04 +00:00
5cca4b5e31
Revamp Sign API, flatten API into blocks
2019-02-28 17:10:37 +00:00
f680a239f7
NetworkSession: some exception handling cleanup
2019-02-28 16:36:03 +00:00
13b9fd7b66
RakLibInterface: Add error ID to make logs searchable when players report legitimate issues
2019-02-28 16:31:14 +00:00
d528fdddfa
DataPacket: Remove useless abstract function
...
this is declared in the Packet interface, so it doesn't need to be here anymore.
2019-02-28 16:20:58 +00:00
fb02071a9d
Traits suck. Fixed missed getDamage() from 9ad0ea85c7
2019-02-27 16:50:51 +00:00
08673172c7
Grass: Avoid usage of meta
2019-02-27 13:03:23 +00:00
9ad0ea85c7
Rename two misleadingly-named functions
2019-02-27 12:59:12 +00:00
ba616ed8a7
Player: Don't rely on magic numbers for gamemodes
2019-02-27 11:01:26 +00:00
31336a0d09
missed one
2019-02-27 10:37:13 +00:00
2d8480d801
Inventory: remove a bunch of crap from interface
...
some of these (notably the on* methods) are internal and shouldn't be exposed via interface (same crap as Plugin->onEnable() onDisable() etc) and the rest of the stuff is entirely unused.
2019-02-27 10:36:05 +00:00
9b3230aa9c
Merge branch '3.6'
2019-02-27 10:19:58 +00:00
20b4723728
Player: fixed held slot being out of sync after dying, closes #2788
...
it appears this premature optimization dates back to the days when PlayerHotbarPacket was not useless.
2019-02-27 09:26:56 +00:00
d1ced0ffc6
Player: fixed XP not dropping on death
2019-02-27 09:22:52 +00:00
440dd21550
Merge branch '3.6'
2019-02-26 19:59:24 +00:00
2164dbae67
Fixed reloaded arrows not despawning, closes #2781
2019-02-26 19:58:21 +00:00
6c92a2e88b
Ladder: be more strict about resetting fall distance
...
closes #2790
2019-02-26 19:54:57 +00:00
97deadc59f
PackedIce: fixed dropping without silk touch, closes #2789
2019-02-26 19:48:18 +00:00
ceaf969203
EnderChest: fix hierarchy
2019-02-26 19:41:56 +00:00
cb91afcc00
Added SkullType enum, some cleanup to skull handling
...
this is still more ugly than I'd like it to be because of the way the blockfactory currently works.
2019-02-26 18:27:30 +00:00
edf4a719d5
DyeColor: add RGB colour values
2019-02-26 17:16:35 +00:00
202aef9846
fix failing tests
2019-02-26 16:35:33 +00:00
d7e73705c2
consistency check regen script now emits which states were added/removed
2019-02-26 16:35:14 +00:00
9afcd72fb6
Flatten FlowerPot tile into its block (mostly)
2019-02-26 16:31:38 +00:00
53af7f5da8
Implemented dragon egg
2019-02-26 15:35:37 +00:00
2d51622b12
Implemented frosted ice
2019-02-26 15:34:48 +00:00
6124f93cb4
Player: Clean up item frame drop-item hack
...
This is now re-routed through a newly-created attack-block handler.
Closes #339
2019-02-25 18:40:04 +00:00
fb378d9091
BlockFactory: fixed auto complete
2019-02-24 18:41:12 +00:00
0f7f5362b8
Revert "Block: Get rid of state bitmasks"
...
This reverts commit b7b05e729e
.
Apparently this was premature, because we still need these things to deal with default state remapping.
2019-02-24 18:30:18 +00:00
6cb263fcca
BlockFactory: enforce stricter checks
...
this can help catch out variant-related bugs.
2019-02-24 17:59:09 +00:00
b7b05e729e
Block: Get rid of state bitmasks
...
This story dates back to the days when getVariantBitmask() was introduced. The purpose of this function was to allow the variant info to be extracted from the metadata, for use with item drops. This was later changed to state bitmask for reasons I don't clearly recall.
In the great 4.0 refactor, we now store variant magic numbers separately, so we don't need any generic bitmask to split up variant and state information anymore. Variant is now only ever serialized and never deserialized. The same thing goes for blockIDs. States are read from the world by matching the full stateID against a table of prefilled known blocks, so the variant doesn't need to be deserialized - only the state does, and the state metadata readers already do bit fuckery by themselves and don't need this mask - notice how little actual changes were required to get rid of this?
2019-02-24 14:42:53 +00:00