Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .poggit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ projects:
path: ""
libs:
- src: Hebbinkpro/pmmp-webserver/pmmp-webserver
version: 0.4.2
version: 0.5.3
- src: HimbeersaftLP/LibSkin/LibSkin
version: 2.0.1
version: 2.1.1
- src: Paroxity/Commando/Commando
version: 3.1.0
version: 3.3.0
- src: Muqsit/SimplePacketHandler/SimplePacketHandler
version: 0.1.3
version: 0.1.5
lint:
phpstan: false
...
22 changes: 5 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
}
],
"require": {
"hebbinkpro/pmmp-webserver": "^0.4.2",
"muqsit/simple-packet-handler": "dev-pm5"
"hebbinkpro/pmmp-webserver": "^0.5.3",
"muqsit/simple-packet-handler": "0.1.5"
},
"require-dev": {
"php": "^8.1",
"pocketmine/pocketmine-mp": "^5.13.0",
"himbeer/libskin": "^2.0.1",
"paroxity/commando": "^3.1.0",
"himbeer/libskin": "^2.1.1",
"paroxity/commando": "^3.3.0",
"phpstan/phpstan": "^1.10.3",
"phpstan/phpstan-strict-rules": "^1.5.0",
"phpstan/extension-installer": "^1.2.0"
Expand All @@ -27,23 +27,11 @@
}
},
"repositories": {
"libskin": {
"type": "package",
"package": {
"name": "himbeer/libskin",
"version": "2.0.1",
"source": {
"url": "https://github.com/HimbeersaftLP/LibSkin.git",
"type": "git",
"reference": "master"
}
}
},
"commando": {
"type": "package",
"package": {
"name": "paroxity/commando",
"version": "3.1.0",
"version": "3.3.0",
"source": {
"url": "https://github.com/Paroxity/Commando.git",
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PocketMap
main: Hebbinkpro\PocketMap\PocketMap
version: 0.6.2
api: [ 5.20.0 ]
version: 0.6.3
api: [ 5.36.0 ]
load: STARTUP
author: Hebbinkpro
description: A dynamic world map for PocketMine-MP
Expand Down
2 changes: 1 addition & 1 deletion resources/resource_packs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ the [official bedrock-samples repository](https://github.com/Mojang/bedrock-samp

### Latest Version

**v1.21.60**
**v1.21.124**

## Custom Resource Packs - _Not Supported_

Expand Down
Binary file not shown.
5 changes: 3 additions & 2 deletions src/Hebbinkpro/PocketMap/PocketMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PocketMap extends PluginBase implements Listener
public const CONFIG_VERSION = 1.7;
public const WEB_VERSION = 1.2;

public const RESOURCE_PACK_NAME = "v1.21.60";
public const RESOURCE_PACK_NAME = "v1.21.124";
public const TEXTURE_SIZE = 16;

public const IGNORED_TEXTURES = [
Expand Down Expand Up @@ -425,7 +425,8 @@ private function createWebServer(): void
}

// create the web server
$serverInfo = new HttpServerInfo($webSettings->getString("address", "127.0.0.1"), $webSettings->getInt("port", 3000));
$port = max(0, min(65535, $webSettings->getInt("port", 3000)));
$serverInfo = new HttpServerInfo($webSettings->getString("address", "127.0.0.1"), $port);

$router = $serverInfo->getRouter();

Expand Down
3 changes: 2 additions & 1 deletion src/Hebbinkpro/PocketMap/textures/model/BlockModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Hebbinkpro\PocketMap\utils\block\BlockUtils;
use pocketmine\block\Block;
use pocketmine\block\Button;
use pocketmine\block\Chain;
use pocketmine\block\Crops;
use pocketmine\block\Door;
use pocketmine\block\DoublePlant;
Expand Down Expand Up @@ -88,7 +89,7 @@ private function registerAll(): void
$this->register(VanillaBlocks::CAVE_VINES(), new CrossModel());
$this->register(VanillaBlocks::FIRE(), new CrossModel());
$this->register(VanillaBlocks::SOUL_FIRE(), new CrossModel());
$this->register(VanillaBlocks::CHAIN(), new CrossModel());
$this->registerFromBlockType(Chain::class, new CrossModel());;
$this->register(VanillaBlocks::BIG_DRIPLEAF_STEM(), new CrossModel());
$this->register(VanillaBlocks::BREWING_STAND(), new CrossModel());
$this->register(VanillaBlocks::COBWEB(), new CrossModel());
Expand Down
4 changes: 4 additions & 0 deletions src/Hebbinkpro/PocketMap/utils/block/OldBlockTypeNames.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ final class OldBlockTypeNames
public const DOUBLE_WOODEN_SLAB = "minecraft:double_wooden_slab";
public const GRASS = "minecraft:grass";

public const CHAIN = "minecraft:chain";

/**
* Get the type name of a block.
* If the type name has an old type name, the old type name will be returned,
Expand Down Expand Up @@ -64,6 +66,8 @@ public static function getTypeName(string $typeName): string

BTN::GRASS_BLOCK => self::GRASS,

BTN::IRON_CHAIN => self::CHAIN,

default => $typeName
};
}
Expand Down
Loading