1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Can you please help me with code for plugin?

Discussion in 'Development' started by SR173200, Jul 7, 2020.

  1. SR173200

    SR173200 Creeper

    Messages:
    1
    GitHub:
    SR173200
    Error: Call to undefined method pocketmine\block\Air::getInputFace()
    File: plugins/RedstoneCircuit_dev-32.phar/src/redstone/blockEntities/BlockEntityRedstoneComparator
    Line: 69
    Type: Error
    php help
    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: RedstoneCircuit v2.0.0

    Code:
    [60] return $this->outputSignal;
    [61] }
    [62]
    [63] public function setOutputSignal(int $signal) : void {
    [64] $this->outputSignal = $signal;
    [65] }
    [66]
    [67] protected function hasSideUtility() : bool {
    [68] $block = $this->getBlock();
    [69] $sideBlock = $block->getSide($block->getInputFace());
    [70] $tile = $this->getLevel()->getTile($sideBlock);
    [71] if ($tile instanceof Container) {
    [72] return true;
    [73] }
    [74]
    [75] $id = $sideBlock->getId();
    [76] if ($id == 92 || $id == 199) {
    [77] return true;
    [78] }
    [79]
     
  2. Seeker

    Seeker Spider Jockey

    Messages:
    45
    GitHub:
    seeker-devs
    Read the code, and use PHP tags. The method
    PHP:
     getInputFace(); 
    in the class Air does not exist.
    Edit
    @Diduhless is right, getInputFace() not set xd thanks
     
    Last edited: Jul 13, 2020
  3. Diduhless

    Diduhless Baby Zombie

    Messages:
    199
    GitHub:
    Diduhless
    Error: Call to undefined method pocketmine\block\Air::getInputFace()
     
  4. HackedByTheSame

    HackedByTheSame Creeper

    Messages:
    1
    I have fixed the issue. Here is the (Fixed) File:
     

    Attached Files:

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.