GeorgH93 / Minepacks

Free and reliable backpack plugin for Bukkit/Spigot/Paper
https://www.spigotmc.org/resources/19286/
GNU General Public License v3.0
172 stars 74 forks source link

Backpack disappearing when used in alt/left hand. #120

Open LifeDreamer24 opened 4 years ago

LifeDreamer24 commented 4 years ago

Information

Environment information Plugin + server version info:


[13:50:01 INFO]: ##### Start Minepacks version info #####
[13:50:01 INFO]: Minepacks: 2.3.19-Release
[13:50:01 INFO]: Server: git-Paper-220 (MC: 1.16.3)
[13:50:01 INFO]: Java: 1.8.0_261
[13:50:01 INFO]: #####  End Minepacks version info  #####

Online mode: yes

BungeeCord: no

Server/crash log

(No errors provided by the console, reloading the plugin does nothing unexpected...)

[13:53:09 INFO]: LifeDreamer24 issued server command: /backpack reload
[13:53:10 INFO]: [at.pcgamingfreaks.MinepacksStandalone.libs.com.zaxxer.hikari.HikariDataSource] Minepacks-Connection-Pool - Shutdown initiated...
[13:53:10 INFO]: [at.pcgamingfreaks.MinepacksStandalone.libs.com.zaxxer.hikari.HikariDataSource] Minepacks-Connection-Pool - Shutdown completed.
[13:53:10 INFO]: [Minepacks] Config file successfully loaded.
[13:53:10 INFO]: [Minepacks] Language file successfully loaded. Language: english  Author: GeorgH93
[13:53:10 INFO]: [at.pcgamingfreaks.MinepacksStandalone.libs.com.zaxxer.hikari.HikariDataSource] Minepacks-Connection-Pool - Starting...
[13:53:10 INFO]: [at.pcgamingfreaks.MinepacksStandalone.libs.com.zaxxer.hikari.HikariDataSource] Minepacks-Connection-Pool - Start completed.
[13:53:10 INFO]: [Minepacks] Item name language file successfully loaded. Language: english  Author: GeorgH93
[13:53:10 INFO]: [Minepacks] Loading item translations ...
[13:53:10 INFO]: [Minepacks] Finished loading item translations for 829 items.

Plugin config (optional)


Nothing related to the config, plugin-sided bug.

Details

Description
The backpack hides itself when opened when in the alternative or right hand and can still be used in any slot in the slot bar (1-9) while being invisible.

Steps to reproduce

  1. Open your player's inventory;

  2. Drag and drop the backpack in the slot next to the recipe book;

  3. Right-click on it;

  4. Close it using the "e" key;

  5. Right-click with one of the 9 (empty) slots of your inventory selected.

Other way to reproduce

  1. Put it in the alternative hand by using the "f" key with the backpack equipped in your right hand;

  2. Right-click with one of the 9 (empty) slots of your inventory selected.

Expected behavior
The backpack should keep displaying after doing the glitch.

Other information (e.g. detailed explanation, related issues, suggestions how to fix, links for us to have context, screenshots, etc.) You can also bypass the BlockItemFromMoving: false in the config by using the second method to reproduce and pressing "f" again with the desired place to move it highlighted/selected in the hotbar.

Bypassing BlockAsHat: false is also possible by holding the backpack on the helmet slot and draging it anywhere on the screen before releasing the mouse's left button.

LifeDreamer24 commented 4 years ago

Just noticed: right-click on a block to make it disappear.