5912 Commits

Author SHA1 Message Date
Dylan K. Taylor
1e539c4e3b fix some 1.2 translation issues, close pmmp/PocketMine-Language#19 2017-08-09 21:40:20 +01:00
Dylan K. Taylor
590003d7c1 Fixed PlayerListPacket 2017-08-09 19:51:39 +01:00
Dylan K. Taylor
72d40860f3 Remove useless else branch and and return unhandled for unmatched window IDs 2017-08-09 19:05:00 +01:00
Dylan K. Taylor
d3d1e32309 Removed teleport zero-offsets (not needed in 1.2) 2017-08-09 17:01:56 +01:00
Dylan K. Taylor
36d47a33f3 Fixed crash on player death 2017-08-09 13:34:25 +01:00
Dylan K. Taylor
260179197b Use SplFixedArrays in inventory, added more typehints and cleaned up some duplicated code 2017-08-09 13:12:07 +01:00
Dylan K. Taylor
75644b5df2 s/windowid/windowId 2017-08-08 12:37:26 +01:00
Dylan K. Taylor
3ad1b1ba7f Added some ContainerSetDataPacket constants 2017-08-08 12:19:11 +01:00
Dylan K. Taylor
b4c2305c7f Minor cleanup of Human->initEntity() 2017-08-08 10:44:11 +01:00
Dylan K. Taylor
1d0f0a2999 Merge branch 'master' into mcpe-1.2 2017-08-08 10:23:19 +01:00
Dylan K. Taylor
8ca37b3813 Fixed a bug in multiline chat handling 2017-08-07 19:41:08 +01:00
Dylan K. Taylor
2ba601b6e9 Fixed signs 2017-08-07 19:40:45 +01:00
Dylan K. Taylor
06083d6dc4 s/Item/Block 2017-08-07 16:26:27 +01:00
Dylan K. Taylor
2d8395f70e Absorption should be a float. Fixed #1071 2017-08-07 16:09:10 +01:00
Dylan K. Taylor
6b5c0af161 Separation of effect handling from Entity, fixes #886 2017-08-07 16:03:54 +01:00
Dylan K. Taylor
c84218c55b Remove overloaded parameter from GeneratorUnregisterTask construction
PhpStorm, pls tell me why you only found this _now_ and not back in January when I started using PhpStorm...
2017-08-07 15:46:57 +01:00
Dylan K. Taylor
6b7a382625 import cleanup and missing strict types declare 2017-08-07 15:42:46 +01:00
Dylan K. Taylor
54b6a5710e Fixed entityBaseTickTimer doesn't cover child overrides 2017-08-07 14:21:06 +01:00
Dylan K. Taylor
7958fffa07 Move some code around to fix block placing, breaking, and throwing snowballs 2017-08-07 12:28:07 +01:00
Dylan K. Taylor
98e0a2ecba Removed InventoryType, added new inventory API methods 2017-08-07 11:31:36 +01:00
Dylan K. Taylor
44f1dedbf8 Give creative players carte blanche
Close #879, close #431

This will be solved properly in 1.2 when creative transactions are
actually trackable. For now... HACK!
2017-08-06 21:16:08 +01:00
Dylan K. Taylor
899e318a88 Merge branch 'master' into mcpe-1.2 2017-08-06 18:46:56 +01:00
Dylan K. Taylor
23eb8600ab Added methods for endian-flipping 2017-08-06 18:46:03 +01:00
Dylan K. Taylor
989505c42c Updated crafting & creative data from 1.2.0.7 2017-08-06 17:21:52 +01:00
Dylan K. Taylor
d9da9accbc Fix packet buffers when encoding twice 2017-08-06 17:21:52 +01:00
Dylan K. Taylor
711d62b5eb Updated block & item IDs from 1.2.0.7
Note to self: these may need updating again later in the beta.
2017-08-06 17:21:52 +01:00
Dylan K. Taylor
49506659e0 More constants 2017-08-06 17:21:51 +01:00
Dylan K. Taylor
7886918140 Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected 2017-08-06 17:21:51 +01:00
Dylan K. Taylor
8a151dc373 Fixed PlayerSkinPacket for 1.2.0.7 2017-08-06 17:21:51 +01:00
Dylan K. Taylor
58a12fdfa3 Updated for 1.2.0.7 2017-08-06 17:21:51 +01:00
Dylan K. Taylor
50dffeb6a1 Day 3, part 1 2017-08-06 17:21:51 +01:00
Dylan K. Taylor
63d2b341b9 Day 2 2017-08-06 17:21:51 +01:00
Dylan K. Taylor
77cd8e7799 More broken mess to spawn 1.2 2017-08-06 17:21:51 +01:00
Dylan K. Taylor
10ff2948ac Fixed double wooden slab name inconsistency 2017-08-06 17:15:35 +01:00
Dylan K. Taylor
0d0df3390a Added glazed terracotta 2017-08-06 17:10:06 +01:00
Dylan K. Taylor
e4a5cb6021 Changed NBT representation in JSON to hex, fix encoding problems with UTF-8 2017-08-06 14:50:18 +01:00
Dylan K. Taylor
71e354cf1d Added chest open/close sounds and cleanup duplicated code 2017-08-06 12:48:46 +01:00
Muqsit Rayyan
7d3fca83f0 Tile NBT usage enhancements (#1259)
* Do not create new NBT objects on Tile::getSpawnCompound()

* PocketMine's string formatting

* Remove more useless array indices and create lesser new NBT objects.

* Remove unused imports and type-hint Sign::setText() params

* Do not mess with Sign::setText() params due to #1204

* Fix formatting

* Make getSpawnCompound() final and add abstract addAdditionalSpawnData()

* Make the same changes for Bed tile

* Fix a missing "->" and remove some unneeded int casting.
2017-08-06 12:35:37 +01:00
Dylan K. Taylor
3fdbcee10f Add some typehints and documentation to MainLogger 2017-08-06 11:43:42 +01:00
Dylan K. Taylor
4e9af1ac45 Fixed several extremely stupid bugs in MainLogger
- Fixed log writes being blocking (these were executed on a thread, but IN A SYNCHRONIZED BLOCK - what the fuck shoghi?!)
- Fixed log file being open for reading as well as writing
- The logger will now be buffered for 25ms before writing to disk, as it should have been to begin with.
- Moved the log resource to a local variable (it's unsafe to try to access resources from different threads, this takes away the ability to do so)
- Fixed line endings to use PHP_EOL instead of hardcoded LF, fix viewing logs in Notepadi
2017-08-06 10:56:39 +01:00
Dylan K. Taylor
475066c9f5 Removed minor code duplication in MainLogger 2017-08-06 08:55:46 +01:00
Dylan K. Taylor
d5f6966ce3 Fixed server freeze due to bad light filter values 2017-08-05 23:22:33 +01:00
Dylan K. Taylor
0ad4a59d5a Added test for light filter levels (must always be >= 1) 2017-08-05 23:03:13 +01:00
Dylan K. Taylor
5f6dc25c9f Fixed EnchantCommand being retarded, close #1012 2017-08-05 21:27:57 +01:00
Dylan K. Taylor
3b7fc21839 Enchantment API changes, understandable constant names 2017-08-05 21:27:57 +01:00
Dylan K. Taylor
ecba80fd63 Fixed some trailing whitespace
$ shopt -s globstar
 $ sed -i 's/[ \t]*$//' src/pocketmine/*/**.php

:P
2017-08-05 21:07:21 +01:00
PMMPFTW
fb59b57bdf Improve item enchantment API and fix some bugs (#512) 2017-08-05 20:50:28 +01:00
hmy2001
2b4e303f52 Fix client-side translation for gamemode change 2017-08-05 12:05:35 +01:00
Dylan K. Taylor
2103c981a9 Replaced literal ints with Vector3 constants for Block->getSide() calls 2017-08-04 13:33:23 +01:00
Dylan K. Taylor
3188f1c053 Removed redundant override 2017-08-04 13:23:46 +01:00