778 Commits

Author SHA1 Message Date
Dylan K. Taylor
c53d3c28fb Register a couple of simple missing redstone blocks 2018-12-05 19:11:54 +00:00
Dylan K. Taylor
281d8fd813 Redstone torch is lit by default 2018-12-05 15:07:18 +00:00
Dylan K. Taylor
2014ebccd8 Make state setters fluent, clean up some BlockFactory noise 2018-12-05 15:03:59 +00:00
Dylan K. Taylor
ceef3110d7 Remove dead function 2018-12-05 14:09:19 +00:00
Dylan K. Taylor
cd5b81bdb9 ChunkManager: Remove getBlockIdAt()/setBlockIdAt()/getBlockDataAt()/setBlockDataAt(), add getBlockAt() and setBlockAt() 2018-12-04 22:27:00 +00:00
Dylan K. Taylor
bfe766e626 oops, a merge error 2018-12-04 13:22:29 +00:00
Dylan K. Taylor
8fc11c6ce0 Merge remote-tracking branch 'origin/release/3.4' 2018-12-04 13:18:56 +00:00
Dylan T
e3f46987f5
Liquid: Add events to allow controlling flow and fusion (#2547) 2018-12-04 13:14:22 +00:00
Dylan K. Taylor
8051fa4f6d Remove some direct Position->level accesses 2018-12-03 21:39:17 +00:00
Dylan K. Taylor
9fb365306a Make Block->position() accept Level,x,y,z instead of Position
since this is an internal method, it doesn't make sense to force a single parameter that requires potentially constructing a separate object just for the parameters, so we pass primitives instead, which are also easier to typehint against.
2018-12-03 21:18:22 +00:00
Dylan K. Taylor
a2253e9e7d Flatten still liquid blocks into a liquid block property 2018-11-30 16:06:35 +00:00
Dylan K. Taylor
328ee40d5d Bring back support for all-sided logs, properly this time 2018-11-25 19:52:45 +00:00
Dylan K. Taylor
c809365c39 Make RedstoneRail class abstract 2018-11-25 19:22:00 +00:00
Dylan K. Taylor
7399e9036a Block: add method isSameState() to allow black-box comparison of blockstates 2018-11-25 14:53:57 +00:00
Dylan K. Taylor
7ddcd2941b More AxisAlignedBB::one() usages 2018-11-24 19:49:15 +00:00
Dylan K. Taylor
fcd81ada04 Make Thin use dynamic state properties 2018-11-24 19:44:32 +00:00
Dylan K. Taylor
d426d18b77 Add dynamic shape property for stairs 2018-11-24 19:44:31 +00:00
Dylan K. Taylor
1170b66fd5 Automate creation of tiles when they are used to store block properties 2018-11-24 19:44:31 +00:00
Dylan K. Taylor
3f3bdaeba5 Use dynamic state detection to localize stateinfo stored in tiles (hack) 2018-11-24 19:43:02 +00:00
Dylan K. Taylor
3af293f024 Added a mechanism for blocks to detect dynamic state properties from surroundings 2018-11-24 19:43:02 +00:00
Dylan K. Taylor
b2201c8c59 Further cleanup to general AABB handling 2018-11-24 19:17:03 +00:00
Dylan K. Taylor
101de7adda Update Math dependency, obliterate some nasty code from Block 2018-11-23 19:41:52 +00:00
Dylan K. Taylor
20dad95755 Liquid: don't try to flow out of the world, close #2510
this fix is only required for master, although it could be backported.
2018-11-14 17:48:14 +00:00
Daniktheboss
d011fc518e Fixed wooden doors not dropping when removing supporting block, closes #2436 (#2496) 2018-10-29 16:16:57 +00:00
Dylan K. Taylor
a7eaec13b9 Merge branch 'release/3.4' 2018-10-24 15:53:13 +01:00
Dylan K. Taylor
f61e099828 Merge branch 'release/3.3' into release/3.4 2018-10-24 15:52:04 +01:00
Dylan K. Taylor
09985c5763 Fixed async light population producing garbage when generator isn't registered, closes #2488 2018-10-24 15:49:00 +01:00
Dylan K. Taylor
6dd2597934 Merge branch 'release/3.3' into release/3.4 2018-10-21 18:17:07 +01:00
Dylan K. Taylor
45c9caa38c Fixup some formatting issues 2018-10-21 18:15:25 +01:00
Dylan K. Taylor
742fbc25c3 BlockFactory: fixed 0 being assumed to be default if used
this defeated the whole point of adding this code ...
2018-10-20 21:42:34 +01:00
Dylan K. Taylor
39d1196e4c Leaves: fix performance issue introduced by block meta nuke 2018-10-13 12:28:33 +01:00
Dylan K. Taylor
f671da99a6 BlockFactory: fix failing test 2018-10-12 21:40:45 +01:00
Dylan K. Taylor
7af7783cc8 BlockFactory: Register block to id|variant without setting state to allow non-zero default states
This will be needed to deal with things like chest/furnace which don't use 0 as a valid state (these both use facing horizontal for rotation, and vertical is invalid, so 0 would mean downwards facing which is invalid.
2018-10-12 20:05:44 +01:00
Dylan K. Taylor
0520598584 BlockFactory: skip blockstates which corrupt the metadata
if the metadata doesn't match what was inputted when reading back, it's an invalid state and should not be registered.
2018-10-12 19:49:26 +01:00
Dylan K. Taylor
873b64259d Torch: remove trailing comma 2018-10-12 19:07:43 +01:00
Dylan K. Taylor
d151a89037 Vine: don't break when a supported vine is above, closes #2452 2018-10-12 18:38:52 +01:00
Andrew
a944641509 Torch: Fix placement issues when clicking the bottom of a block, closes #2453 (#2474) 2018-10-12 12:26:44 +01:00
Dylan K. Taylor
139aaa5577 Protect Item->count 2018-10-07 14:34:04 +01:00
Dylan K. Taylor
a430f7f4f7 Allow static properties and state masks to vary based on variant 2018-10-06 17:33:28 +01:00
Dylan K. Taylor
78bb0145aa Remove unused imports from Block namespace 2018-10-05 18:31:06 +01:00
Dylan K. Taylor
4608ecde9b Merge branch 'release/3.3' 2018-10-05 18:29:37 +01:00
Dylan K. Taylor
495fdbd19f Move block and network namespaces away from PluginManager->callEvent()
the original step that wasn't supposed to cause conflicts, caused messy conflicts... so I might as well do this part too
2018-10-05 18:22:49 +01:00
Dylan K. Taylor
77fd57e11a Removed wtf from Liquid 2018-10-01 16:20:35 -04:00
Dylan K. Taylor
94936d0f6b Fixed CPU leak in falling water block updating
The cause of this was the flow decay of falling water changing, but the flow decay is ignored for falling water. This caused the block to be repeatedly set to itself, triggering local block updates, causing the disease to spread in large falling water bodies and cause immense amounts of lag.
2018-10-01 16:15:49 -04:00
Dylan K. Taylor
74486d6880 Remove some state meta constants from API visibility 2018-09-30 14:43:55 +01:00
Dylan K. Taylor
274a4d892f Rail: detect state and then place, not vice versa 2018-09-30 14:35:57 +01:00
Dylan K. Taylor
1a2312418b Fixed assert failure when placing northeast/northwest powered rails 2018-09-30 14:17:30 +01:00
Dylan K. Taylor
8e6a5813ea Don't auto-create tiles on activate
this complicates the code unnecessarily and doesn't produce the desired effect in most cases anyway.
2018-09-28 20:12:41 +01:00
Dylan K. Taylor
594a2041b6 Trapdoor: fix bad meth in comment 2018-09-28 16:44:30 +01:00
Dylan K. Taylor
2600cf5977 Split some block variants into their own classes where behaviour differs 2018-09-28 16:21:03 +01:00