Dylan K. Taylor
fd8a562e02
Fixed collision bugs caused by not clearing pre-computed outdated AABBs for blocks
...
take fences as an example: say you have fence1 and fence2 next to each other, like this:
|==|
and they are joined together
then delete the fence on the right
the left fence will then look like this
|
but the server would still think its collision boxes were like this:
|=
so you wouldn't be able to shoot arrows through that space.
This commit clears pre-computed bounding boxes when a block is set using Level->setBlock() (in case the block was previously already set and has pre-calculated outdated AABB). However, because of weird blocks like fences, glass and walls, they must also be cleared on neighbour block update (since connection state isn't shown in the block data).
2017-10-14 10:07:17 +01:00
..
2017-08-25 13:06:16 +01:00
2017-08-18 19:49:28 +01:00
2017-10-12 16:29:24 +01:00
2017-10-13 11:18:19 +01:00
2017-10-11 18:45:40 +01:00
2017-08-20 13:25:43 +01:00
2017-08-21 17:49:26 +01:00
2017-10-14 10:07:17 +01:00
2017-10-13 11:51:38 +01:00
2017-08-27 16:09:23 +01:00
2017-09-21 19:50:03 +01:00
2017-08-21 17:49:26 +01:00
2017-08-18 19:49:28 +01:00
2017-08-20 13:25:43 +01:00
2017-08-20 13:25:43 +01:00
2017-08-25 11:47:38 +01:00
2017-09-21 14:07:51 +01:00
2017-10-11 18:08:08 +01:00
2017-10-11 18:45:40 +01:00
2017-10-11 18:45:40 +01:00
2017-10-11 18:45:40 +01:00
2017-08-21 17:49:26 +01:00
2017-10-11 18:45:40 +01:00
2017-08-21 17:49:26 +01:00
2017-08-18 11:21:33 +01:00
2017-08-21 17:49:26 +01:00
2017-08-18 11:21:33 +01:00
2017-08-17 13:50:19 +01:00
2017-10-12 19:36:06 +01:00
2017-10-11 18:45:40 +01:00
2017-10-13 10:37:48 +01:00
2017-08-25 13:13:11 +01:00
2017-10-11 18:45:40 +01:00
2017-09-12 19:34:06 +01:00
2017-08-26 14:41:49 +01:00
2017-08-27 16:16:37 +01:00
2017-08-18 19:49:28 +01:00
2017-09-30 21:04:39 +01:00
2017-08-18 19:49:28 +01:00
2017-08-18 11:21:33 +01:00
2017-08-21 17:49:26 +01:00
2017-09-23 22:25:03 +01:00
2017-10-11 18:45:40 +01:00
2017-09-21 14:41:18 +01:00
2017-08-25 12:41:49 +01:00
2017-08-21 17:49:26 +01:00
2017-08-18 11:21:33 +01:00
2017-08-25 12:41:49 +01:00
2017-10-11 18:08:08 +01:00
2017-10-11 18:45:40 +01:00
2017-10-11 18:45:40 +01:00
2017-08-17 13:50:19 +01:00
2017-10-13 11:51:38 +01:00
2017-09-29 14:53:23 +01:00
2017-10-12 11:11:33 +01:00
2017-10-13 09:40:29 +01:00
2017-10-11 18:45:40 +01:00
2017-10-11 18:45:40 +01:00
2017-10-11 18:45:40 +01:00
2017-08-26 14:41:49 +01:00
2017-10-11 18:45:40 +01:00
2017-08-17 13:50:19 +01:00
2017-08-18 11:21:33 +01:00
2017-08-18 11:21:33 +01:00
2017-08-26 14:41:49 +01:00
2017-08-25 11:52:46 +01:00
2017-08-20 18:05:01 +01:00
2017-08-21 17:49:26 +01:00
2017-08-18 11:21:33 +01:00
2017-08-18 11:21:33 +01:00
2017-09-23 22:25:03 +01:00
2017-10-12 11:11:33 +01:00
2017-08-21 17:49:26 +01:00
2017-08-17 13:50:19 +01:00
2017-08-26 14:41:49 +01:00
2017-08-25 11:47:38 +01:00
2017-08-18 11:21:33 +01:00
2017-08-18 19:49:28 +01:00
2017-10-09 12:31:57 +01:00
2017-08-18 11:21:33 +01:00
2017-08-17 13:50:19 +01:00
2017-10-11 18:08:08 +01:00
2017-10-11 18:45:40 +01:00
2017-08-18 11:21:33 +01:00
2017-08-21 17:49:26 +01:00
2017-10-11 18:45:40 +01:00
2017-08-25 12:41:49 +01:00
2017-08-26 14:41:49 +01:00
2017-08-17 13:50:19 +01:00
2017-10-11 18:45:40 +01:00
2017-08-17 13:50:19 +01:00
2017-08-17 13:50:19 +01:00
2017-10-11 18:45:40 +01:00
2017-08-21 17:49:26 +01:00
2017-08-21 17:49:26 +01:00
2017-10-13 10:37:48 +01:00
2017-08-19 11:11:49 +01:00
2017-08-25 11:47:38 +01:00
2017-08-18 13:58:05 +01:00
2017-10-12 17:04:49 +01:00
2017-08-18 18:59:34 +01:00
2017-08-21 17:49:26 +01:00
2017-08-18 11:21:33 +01:00
2017-08-21 17:49:26 +01:00
2017-08-18 13:58:05 +01:00
2017-09-21 16:56:41 +01:00
2017-08-17 13:50:19 +01:00
2017-08-25 11:53:41 +01:00
2017-08-23 18:38:09 +01:00
2017-08-17 13:50:19 +01:00
2017-08-17 13:50:19 +01:00
2017-08-21 17:49:26 +01:00
2017-08-17 13:50:19 +01:00
2017-08-25 12:41:49 +01:00
2017-08-26 14:41:49 +01:00
2017-08-21 17:49:26 +01:00
2017-10-13 11:51:38 +01:00
2017-10-13 11:51:38 +01:00
2017-10-13 11:51:38 +01:00
2017-08-17 13:50:19 +01:00
2017-08-26 14:41:49 +01:00
2017-08-26 14:41:49 +01:00
2017-09-21 14:07:51 +01:00
2017-08-18 11:21:33 +01:00
2017-08-17 13:50:19 +01:00
2017-08-26 14:41:49 +01:00
2017-08-17 13:50:19 +01:00
2017-08-17 13:50:19 +01:00
2017-08-17 13:50:19 +01:00
2017-08-18 19:49:28 +01:00
2017-08-17 13:50:19 +01:00
2017-09-03 12:22:37 +01:00
2017-08-21 17:49:26 +01:00
2017-10-11 18:45:40 +01:00
2017-10-11 18:45:40 +01:00
2017-08-17 13:50:19 +01:00
2017-09-21 14:41:18 +01:00
2017-08-17 13:50:19 +01:00
2017-10-11 18:45:40 +01:00
2017-08-17 13:50:19 +01:00
2017-08-17 13:50:19 +01:00
2017-08-19 11:11:49 +01:00
2017-08-19 11:11:49 +01:00
2017-10-12 16:29:24 +01:00
2017-08-17 13:50:19 +01:00
2017-08-17 13:50:19 +01:00
2017-08-21 17:49:26 +01:00
2017-08-25 12:41:49 +01:00
2017-08-17 13:50:19 +01:00
2017-08-18 19:49:28 +01:00
2017-08-18 11:21:33 +01:00
2017-08-18 19:49:28 +01:00
2017-08-25 12:41:49 +01:00
2017-09-03 12:22:37 +01:00
2017-09-21 14:41:18 +01:00
2017-10-13 11:06:10 +01:00
2017-08-20 18:05:01 +01:00
2017-08-26 14:41:49 +01:00
2017-08-17 13:50:19 +01:00
2017-10-11 18:45:40 +01:00
2017-08-17 13:50:19 +01:00
2017-08-17 13:50:19 +01:00
2017-08-18 19:49:28 +01:00
2017-08-18 11:21:33 +01:00
2017-10-12 10:21:08 +01:00
2017-08-25 12:41:49 +01:00
2017-10-11 18:45:40 +01:00
2017-10-11 18:45:40 +01:00
2017-08-17 13:50:19 +01:00
2017-08-18 19:49:28 +01:00
2017-08-21 17:49:26 +01:00
2017-08-17 13:50:19 +01:00
2017-08-26 14:41:49 +01:00
2017-08-17 13:50:19 +01:00
2017-08-19 11:11:49 +01:00
2017-10-12 17:04:49 +01:00
2017-08-17 13:50:19 +01:00
2017-10-11 18:45:40 +01:00
2017-09-26 19:35:04 +01:00
2017-08-17 13:50:19 +01:00