Skip to content

Commit

Permalink
Fixed #3
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoe77777 committed Dec 1, 2016
1 parent 9809902 commit 315c32b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Slapper
author: jojoe77777
version: 1.3.0
version: 1.3.1
description: Slapper, the NPC plugin for PocketMine/Genisys
main: slapper\Main
api: [2.0.0]
Expand Down
4 changes: 2 additions & 2 deletions src/slapper/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,8 @@ private function makeNBT($type, Player $player){
$nbt->Health = new ShortTag("Health", 1);
$nbt->Commands = new CompoundTag("Commands", []);
$nbt->MenuName = new StringTag("MenuName", "");
$nbt->SlapperVersion = new StringTag("SlapperVersion", "1.3.0");
if($type === "SlapperHuman"){
$nbt->SlapperVersion = new StringTag("SlapperVersion", "1.3.1");
if($type === "Human"){
$nbt->Inventory = new ListTag("Inventory", $player->getInventory());
$nbt->Skin = new CompoundTag("Skin", ["Data" => new StringTag("Data", $player->getSkinData()), "Name" => new StringTag("Name", $player->getSkinId())]);
}
Expand Down

0 comments on commit 315c32b

Please sign in to comment.