Commit graph

3180 commits

Author SHA1 Message Date
yefengeeeeeeeeeee
71e14456d6
Refactor PHP CS Fixer configuration
Removed unnecessary rules for indentation and superfluous PHPDoc tags.
2026-04-04 17:53:31 +08:00
yefengeeeeeeeeeee
07fd0e7968
Why 2026-04-04 17:49:58 +08:00
yefengeeeeeeeeeee
845ff19ba1
Merge pull request #9 from yefengeeeeeeeeeee/main
Merger Conflict
2026-04-04 15:07:47 +08:00
yefengeeeeeeeeeee
3fbab46e60 Merge branch 'master'
# Conflicts:
#	src/API/AchievementAPI.php
#	src/API/BanAPI.php
#	src/API/BlockAPI.php
#	src/API/EntityAPI.php
#	src/API/PlayerAPI.php
#	src/Player.php
#	src/PocketMinecraftServer.php
#	src/config.php
#	src/entity/Animal.php
#	src/entity/Breedable.php
#	src/entity/Creature.php
#	src/entity/Entity.php
#	src/entity/animal/Sheep.php
#	src/entity/monster/Creeper.php
#	src/entity/monster/Zombie.php
#	src/entity/object/Arrow.php
#	src/entity/object/FallingSand.php
#	src/entity/object/ItemEntity.php
#	src/entity/object/Minecart.php
#	src/entity/object/Painting.php
#	src/entity/object/PrimedTNT.php
#	src/material/Block.php
#	src/material/Item.php
#	src/material/Material.php
#	src/material/StaticBlock.php
#	src/material/block/DoorBlock.php
#	src/material/block/GenericBlock.php
#	src/material/block/attachable/WallSignBlock.php
#	src/material/block/liquid/LiquidBlockDynamic.php
#	src/material/block/misc/AirBlock.php
#	src/material/block/misc/BedBlock.php
#	src/material/block/misc/TNTBlock.php
#	src/material/block/nonfull/CarpetBlock.php
#	src/material/block/nonfull/FenceBlock.php
#	src/material/block/nonfull/PoweredRailBlock.php
#	src/material/block/nonfull/RailBlock.php
#	src/material/block/nonfull/SnowLayerBlock.php
#	src/material/block/nonfull/WoodSlabBlock.php
#	src/material/block/plant/BrownMushroomBlock.php
#	src/material/block/plant/DandelionBlock.php
#	src/material/block/plant/MelonStemBlock.php
#	src/material/block/plant/PumpkinStemBlock.php
#	src/material/block/plant/RedMushroomBlock.php
#	src/material/block/plant/SugarcaneBlock.php
#	src/material/block/solid/GrassBlock.php
#	src/material/block/solid/IceBlock.php
#	src/material/block/solid/LeavesBlock.php
#	src/material/block/solid/ObsidianBlock.php
#	src/material/block/solid/PumpkinBlock.php
#	src/material/block/solid/WoolBlock.php
#	src/material/item/base/ItemHoe.php
#	src/material/item/base/ItemTool.php
#	src/material/item/generic/DyeItem.php
#	src/material/item/generic/SpawnEggItem.php
#	src/material/item/tool/FlintSteelItem.php
#	src/material/item/tool/ShearsItem.php
#	src/math/AxisAlignedBB.php
#	src/network/MinecraftInterface.php
#	src/network/UDPSocket.php
#	src/network/protocol/packet/AddItemEntityPacket.php
#	src/network/protocol/packet/ContainerSetContentPacket.php
#	src/network/raknet/RakNetDataPacket.php
#	src/network/raknet/RakNetParser.php
#	src/pmf/PMFLevel.php
#	src/utils/Utils.php
#	src/world/Explosion.php
#	src/world/Level.php
#	src/world/MobSpawner.php
2026-04-04 14:52:08 +08:00
yefengeeeeeeeeeee
c984b31c25 Sign should be placable on glass pane, ironbars and stonewalls 2026-03-28 15:26:27 +08:00
for(int i = 0;i 100; ++i){EntityPlayer p = mc.thePlayer; mc.getSendQueue().addToSendQueue(new Packet11PlayerPosition(p.posX + 0.15*i, p.boundingBox.minY, p.posY, p.posZ + 0.15*i, true)); mc.getSendQueue().addToSendQueue(new Packet19EntityAction(p, 3));}
6a47ca7381
Merge pull request #70 from yefengeeeeeeeeeee/Torch-fix
Bucket Water/Lava can be placed at torch block
2026-03-28 00:30:10 +03:00
yefengeeeeeeeeeee
7d167f7055
Bucket Water/Lava can be placed at torch block
Vanilla feature
2026-03-27 23:15:26 +08:00
GameHerobrine
d6c57e4aa6 second array in ContainerSetContentPacket will be read no matter is windowid==0 2026-03-10 21:50:47 +03:00
GameHerobrine
878fc5f74b fixed varied size of ContainerSetContentPacket when writing 2026-03-08 08:04:09 +03:00
GameHerobrine
a97da0f719 send time after startgame so the time would be synchronized when the client is ready] 2026-03-05 19:49:37 +03:00
GameHerobrine
e16f3f5668 readInt/Float/LDouble/LLong will return 0 if str has not enough bytes 2026-02-23 22:44:43 +03:00
GameHerobrine
b4873bfd3b fixed ladder collisions with entities 2026-02-09 11:03:00 +03:00
GameHerobrine
ab79797587 added illegal windows filenames(fixed #69) 2026-02-05 12:32:07 +03:00
GameHerobrine
5eb458e14e unknown -> randomly (fixed #68) 2026-02-03 09:08:55 +03:00
GameHerobrine
3fb4198210 fixed small memory leak 2026-01-16 23:48:02 +03:00
GameHerobrine
f36ab5aa6c baby sheep color is based on its parents colours 2026-01-10 23:32:19 +03:00
GameHerobrine
d990c7c6b3 idk maybe it will fix desyncs 2026-01-06 09:41:18 +03:00
GameHerobrine
6af453dcc3 better bed head block detection, fixed bonemeal not decrementing from slot when used, fixed players seeing teleport to -256,128,-256 when dying 2026-01-06 08:58:35 +03:00
GameHerobrine
2f6e2ffcab some fixes to prevent deprecated warning spam on php 8.2 2026-01-05 10:39:06 +03:00
GameHerobrine
1272932257 ported leaf decay logic from b1.7.3 2026-01-04 10:54:03 +03:00
GameHerobrine
8555a06dda small fix 2026-01-03 15:57:35 +03:00
GameHerobrine
4c072e91cd fixed player posiiton on bed, hopefully fixed players not receiving packets sometimes 2026-01-03 15:55:22 +03:00
GameHerobrine
f93aa2601a uncommented randomness 2025-12-21 14:58:08 +03:00
GameHerobrine
f81c8b17bf added mushroom spreading 2025-12-21 14:57:27 +03:00
GameHerobrine
a6d96c4ac7 added ice and snow layer melting based on light level 2025-11-30 01:55:31 +03:00
GameHerobrine
3256a957d3 slightly faster random block ticking 2025-11-02 11:29:56 +03:00
GameHerobrine
627590cb86 fixed parseProperties parsing stuff inside comments 2025-10-23 18:26:01 +03:00
GameHerobrine
42fef5f812 removed useless data when updating tile entity data 2025-10-23 15:58:48 +03:00
GameHerobrine
acd55cce96 fixed #67 2025-10-17 04:11:42 +03:00
GameHerobrine
20298d60fd comments for server-type and generator-settings in server.properties 2025-10-14 16:02:31 +03:00
GameHerobrine
8362ed4211 added ticking-mode into server.properties, replaced force-20-tps with nodelay mode 2025-10-14 12:05:06 +03:00
GameHerobrine
52d03da938 moved php version check into the config.php file 2025-10-06 02:02:58 +03:00
GameHerobrine
2a827c42c4 added ability to add comments for entries in .properties files, deleted experimental-mob-ai since it does nothing 2025-09-12 12:54:49 +03:00
GameHerobrine
8046d0e17c hopefiully fixed some warning eqozqq has 2025-08-10 21:11:42 +03:00
GameHerobrine
e827c1ed15 close connection if no login packet was sent 20 seconds after the connection was established 2025-08-07 20:41:48 +03:00
GameHerobrine
21f106f66c Player::addItem will attempt to drop items, fixed crafting with full inventory 2025-07-25 01:34:20 +03:00
GameHerobrine
b05ca0e1b8 using bonemeal on grass sends inventory 2025-07-23 17:24:13 +03:00
GameHerobrine
24d5b8f1f5 allow using tools even if their metadata doesnt match on server and client 2025-07-20 16:55:05 +03:00
GameHerobrine
cc3f333660 fixed memory leak during light recalculation, importing the world saves nc level data and uses blocklight from vanilla world 2025-07-20 13:30:49 +03:00
GameHerobrine
a61d4936c5 hotbar will save in creative mode 2025-07-19 14:55:40 +03:00
GameHerobrine
92e1411ed3 show error in console if information about the phar plugin was not found 2025-07-18 17:44:37 +03:00
GameHerobrine
187a2d0805 switching gamemode to 1/3 wont remove items from survival inventory 2025-07-18 17:35:49 +03:00
GameHerobrine
26516699c7 fixed some players being invisible if they join while other players are joining 2025-07-17 13:53:33 +03:00
GameHerobrine
aa39b77156 one small change 2025-07-17 05:27:48 +03:00
GameHerobrine
ba4ccafa32 PlayerAPI::remove removes a player from the table by his clientID, packets wont be handled after the player was kicked due to player already ingame 2025-07-17 05:27:15 +03:00
GameHerobrine
bbe9e0ee13 fixed enitites being able to clip through 0 barrier 2025-07-16 19:16:11 +03:00
GameHerobrine
fc2e104c41 hotbar is full of air in spectator mode now 2025-07-16 14:41:27 +03:00
GameHerobrine
77a896b18c removed add mob spam 2025-07-16 12:38:34 +03:00
GameHerobrine
d7763f445a better entity linking system 2025-07-16 12:35:12 +03:00
GameHerobrine
c95a8d5cff using prepared statements for PlayerAPI::get 2025-07-13 20:06:00 +03:00