122 Commits

Author SHA1 Message Date
Dylan K. Taylor
cbb003bf29 Guard against leaked closed tiles leaking chunks and NBT trees
Once again, this does not fix the actual issue, only reduces the impact of it.
2017-03-18 11:50:05 +00:00
Dylan K. Taylor
c21197ef17 Removed entanglement between chunks and providers. WARNING: BREAKING API CHANGES.
- All entity and tile constructors now require a \pocketmine\level\Level instead of a \pocketmine\level\format\Chunk.
- Chunk->getProvider() and Chunk->setProvider() have been removed.
- Chunk::__construct() has had the $provider parameter removed.
- Chunk->unload() has had the unused $save parameter removed.
- ChunkEvents now take a Level parameter instead of going through the Chunk

API bump to 3.0.0-ALPHA4
2017-02-21 17:08:45 +00:00
Dylan K. Taylor
e4aa3d72fe Check for unloaded chunks, fix triple chest bug, fix Chest object leak, close #256
Revert "Fixed double chest tile memory leak on shutdown, close #256 (#261)"

This reverts commit 9869aaa46ae38443ad860e9f4e5bb240d80536c7.
2017-01-19 15:34:51 +00:00
Dylan K. Taylor
9869aaa46a Fixed double chest tile memory leak on shutdown, close #256 (#261) 2017-01-15 19:41:15 +00:00
Dylan K. Taylor
9004417456 Fixed file headers (#255) 2017-01-13 16:57:05 +00:00
Dylan K. Taylor
1cb96d24ce Some fixes, thanks PhpStorm 2017-01-04 11:29:24 +00:00
Dylan K. Taylor
55791e0819 Fix doc formatting from FullChunk -> Chunk mass-replace 2017-01-03 22:24:28 +00:00
Dylan K. Taylor
e85d6d134e Fix mob head crashes and drops, fix #221 2017-01-01 01:57:39 +00:00
Dylan K. Taylor
772abc609d Fix ItemFrame crash 2016-12-21 17:11:03 +00:00
Dylan K. Taylor
8c772fe671 Working item frames 2016-12-20 13:01:28 +00:00
Dylan K. Taylor
c4d4277a6c Better BlockEntityDataPacket handling 2016-12-20 13:01:27 +00:00
Dylan K. Taylor
2987c7a80c Remove unnecessary duplication 2016-12-20 12:59:27 +00:00
Dylan K. Taylor
4063bc4ffb Relocated Server->registerTiles() to Tile::init() 2016-12-20 12:59:27 +00:00
Dylan K. Taylor
90957cd908 Some tile improvements and added ItemFrame tile 2016-12-20 12:59:26 +00:00
Dylan K. Taylor
2930cf80b4 Merge branch 'master' into mcpe-1.0 2016-12-16 10:29:58 +00:00
SOFe
175dd0efa6 PhpStorm inspections
Fixed some minor bugs and dropped some obsolete code

pocketmine\level\generator namespace is ignored in this commit
2016-12-14 21:49:35 +00:00
Dylan K. Taylor
4c49db6036 New generic in-memory chunk format, fixed 0.17.0.1 chunk loading
Terrible performance, needs profiling. TODO: fix this.
2016-11-27 21:57:59 +00:00
Dylan K. Taylor
995d0847f9 Fix tile derp 2016-11-27 13:06:11 +00:00
Dylan K. Taylor
e51a2725de Remove circular dependency between Item and NBT modules (#121) 2016-11-25 10:17:50 +00:00
Dylan K. Taylor
ff40c0a070 NBT updates and tile spawns fixed 2016-10-27 10:55:01 +01:00
SOFe
58ff381557 PhpStorm automated formatting (#11)
* PhpStorm reformatting

* Tuned PhpStorm reformatting

* Improved ItemIds and BlockIds formatting

* Tuned more PhpStorm reformatting

* Improved string concatenation
2016-10-03 19:05:48 +08:00
SOF3
e913b16804
Fixed some lines indented with 4 spaces rather than tabs 2016-10-03 00:58:34 +08:00
SOF3
6fc435da0e
Imports rearrangement 2016-10-03 00:43:46 +08:00
Dylan K. Taylor
ad64a074cb Fix furnace NBT assertion errors and inventory not working 2016-10-01 14:14:55 +01:00
NoHaxJustTryHqrd
2d95bdc10f Remove derp semicolon (#11)
* Update Furnace.php

* fix formatting
2016-09-30 19:20:03 +01:00
Dylan K. Taylor
7b8548b2b1 Added Flower Pots 2016-09-30 19:19:51 +01:00
dktapps
4198c445b0 Fixed Furnace crash 2016-09-28 13:59:53 +01:00
Jorge González
012d46dfd8 Added Mob Heads
Fixed duplicated items in JSON file
2016-03-22 22:25:36 -06:00
Intyre
a2734f6dc0
Merged master into php7 to support 0.13.1 2016-01-22 17:36:45 +01:00
hmy2001
963f7ee077 Update Spawnable.php 2015-11-25 21:00:03 +09:00
Intyre
734736492a
Added some creative items and removed nether reactor 2015-11-23 21:56:38 +01:00
Shoghi Cervantes
cf3d8f449e Added some asserts 2015-09-27 19:48:42 +02:00
Shoghi Cervantes
8768b7fdbd Merge remote-tracking branch 'origin/mcpe-0.12' into php7 2015-09-17 12:25:05 +02:00
0929hitoshi
9665dfd63e Changing the return value of getName 2015-09-16 01:21:07 +09:00
Shoghi Cervantes
7f8b39a63c Renamed NBT tags to have Tag in the name 2015-08-23 00:25:29 +02:00
Shoghi Cervantes
31ef7721b1 Removed network channels, bumped protocol 2015-08-12 14:59:48 +02:00
Shoghi Cervantes
3e2cce3c2c use cleanup 2015-08-07 21:26:24 +02:00
Shoghi Cervantes
696edfd31f Added custom block data (example, chests), better deep checking of same NBT 2015-08-07 17:24:35 +02:00
Shoghi Cervantes
75b7b03857 Added support for more NBT data, renaming inventories, fixed tags not being saved, added support for tags in /give 2015-08-07 16:28:27 +02:00
Shoghi Cervantes
d1bfb304cb Added some extra tile entities, fake enchanting table 2015-08-07 12:07:39 +02:00
Shoghi Cervantes
02cb9d69a9 Save items properly on several places, added NBT::getItemHelper() and NBT::putItemHelper() 2015-08-06 21:44:00 +02:00
Shoghi Cervantes
091d0b3ff9 Added compound tag checking for Item->equals() 2015-08-06 20:25:22 +02:00
Shoghi Cervantes
4258e22c02 Made some changes for 0.12 2015-08-01 19:14:44 +02:00
Shoghi Cervantes
7bafa217c8 Fixed some saving 2015-06-05 16:46:53 +02:00
Shoghi Cervantes
188f4d7778 Clear chunk cache on tile change 2015-06-04 17:36:12 +02:00
Shoghi Cervantes
71490f60f2 Fixed other invisibility issues 2015-06-04 16:51:48 +02:00
Shoghi Cervantes
840690d801 Replaced old deprecated calls 2015-05-18 15:52:31 +02:00
Shoghi Cervantes
76e6ccebd5 Proper recipe matching from network, bumped protocol, build 11, fixed entities not being killed on void (closes #3021), fixes achievement acquireIron not being possible (fixes #2600) 2015-05-15 13:59:29 +02:00
Shoghi Cervantes
f88aed1208 Fixed NBT parsing on false properties 2015-04-20 13:57:16 +02:00
Shoghi Cervantes
0b176b3fe0 Implemented Channeled packet sending 2015-04-14 18:24:40 +02:00