Skip to content

Commit

Permalink
Fix to allow breaking of Spawners
Browse files Browse the repository at this point in the history
  • Loading branch information
Heisenburger69 committed Jan 26, 2020
1 parent b6f8608 commit 308a39a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/Heisenburger69/BurgerSpawners/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use pocketmine\event\entity\EntitySpawnEvent;
use pocketmine\event\Listener;
use pocketmine\event\player\PlayerInteractEvent;
use pocketmine\item\Pickaxe;
use pocketmine\nbt\tag\IntTag;

/**
Expand Down Expand Up @@ -68,6 +69,9 @@ public function onSpawn(EntitySpawnEvent $event): void
public function onPlaceSpawner(PlayerInteractEvent $event): void
{
$item = $event->getItem();
if($item instanceof Pickaxe) {
return;
}
$nbt = $item->getNamedTag();
$player = $event->getPlayer();
$vec3 = $event->getBlock()->asVector3();
Expand Down

1 comment on commit 308a39a

@jasonw4331
Copy link

@jasonw4331 jasonw4331 commented on 308a39a Jan 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @Heisenburger69,

I regret to inform you that your plugin "BurgerSpawners" (v0.0.1 submitted on 2020-01-26T14:42:59.000Z) has been rejected.

D1 — Detailed description:

The description should give an idea what the plugin is about, why it is useful, etc. Do not assume everyone knows the terminology; explain them. Do not just post screenshots or videos without explaining with text; videos are not searchable.

A1 — Complete and serve a purpose:

The plugin must be complete and serve a purpose. It is OK to have parts of the plugin not yet working, but they must be disabled by default.

D3 — Clean description:

Do not provide irrelevant information in the description. See description guide for details. Do not advertise in the description. (Leaving a reasonable number of contacts is allowed)

Please resolve these issues and submit the plugin again.

This comment is posted here because this is the last commit when the released build was created.

Please sign in to comment.