Spout SpoutPlayer.OpenInventoryWindow has limited range

Discussion in 'Plugin Development' started by tboss, Dec 17, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    tboss

    Everything is in the title : I use OpenInventoryWindow from the SpoutPlayer class, and it works for small distances but not on long distances. It's the same with both true and false on last argument. Has someone any idea of why it does this ?
    Thanks in advance.

    Up.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 22, 2016
  2. Offline

    ZNickq

    What window are you trying to open? It should work no matter what distance there is...
     
  3. Offline

    tboss

    An inventory of a chest. new Location() -> getBlock() -> (Chest) -> getInventory() -> openInventoryWindow(inventory,null,true);
     
  4. Offline

    ZNickq

    Why null? :confused:
     
  5. Offline

    Celeixen

    The game checks if the inventory is within reaching range, there are a few ways to get around this but a lot of them are quite advanced.
     
  6. Offline

    tboss

    I don't care. I need it because otherwise all my plugin gets unuseful.
     
Thread Status:
Not open for further replies.

Share This Page