Closed DemonicDev closed 1 year ago
i put an onInteract Event in, to get the MaxStackSize and current Stack Size of the Item. While Pocketmine thinks the Max Stack Size is 64, Customies thinks its 1. This Accurs to an Glitch, since the Item Pickup event is Triggered by Pocketmine
Got Already A Fix:
in colt.php
class colt extends Item implements ItemComponents{
#to
class colt extends Gun implements ItemComponents{
and making Gun.php
use pocketmine\item\Item;
class Gun extends Item
{
public function getMaxStackSize() : int{
return 1;
}
}
@DemonicDev bro what's your discord id
when taking an Item From Invetory, it is only 1 item in the stack, if i drop one of the two items, and pick it up, it will be added to the other stack, and it becomes to a 2Items stack while MaxStackSize was set to 1