In some inventory types items are invisible
Misat11 opened this issue · 3 comments
Misat11 commented
Describe the bug
If types ANVIL, BEACON, CARTOGRAPHY, ENCHANTING, GRINDSTONE, LOOM or STONECUTTER are used, any listener is working fine, I can click on any item, it works, but the problem is, that all items are invisible so it appears like inventory is empty. Anvil is partially solved with external reflection library (needs better clear and better solution)
Server and plugin version
Spigot version: 1.15.2
SimpleInventories version: Since 1.0.3
Configuration for testing:
inventory {
category('CRAFTING_TABLE;1;Custom inventory types test') {
id 'customInventoryTest'
category('ANVIL') {
id 'anvilTest'
categoryOptions {
inventoryType 'ANVIL'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 3
}
}
category('BEACON') {
id 'beaconTest'
categoryOptions {
inventoryType 'BEACON'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 1
}
}
category('BLAST_FURNACE') {
id 'blastFurnaceTest'
categoryOptions {
inventoryType 'BLAST_FURNACE'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 3
}
}
category('BREWING_STAND') {
id 'brewingTest'
categoryOptions {
inventoryType 'BREWING'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 5
}
}
category('CARTOGRAPHY_TABLE') {
id 'cartographyTest'
categoryOptions {
inventoryType 'CARTOGRAPHY'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 3
}
}
category('DISPENSER') {
id 'dispenserTest'
categoryOptions {
inventoryType 'DISPENSER'
rows 3
renderActualRows 3
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 3
}
}
category('DROPPER') {
id 'dropperTest'
categoryOptions {
inventoryType 'DROPPER'
rows 3
renderActualRows 3
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 3
}
}
category('ENCHANTING_TABLE') {
id 'enchantingTest'
categoryOptions {
inventoryType 'ENCHANTING'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 2
}
}
category('FURNACE') {
id 'furnaceTest'
categoryOptions {
inventoryType 'FURNACE'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 3
}
}
category('GRINDSTONE') {
id 'grindstoneTest'
categoryOptions {
inventoryType 'GRINDSTONE'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 3
}
}
category('HOPPER') {
id 'hopperTest'
categoryOptions {
inventoryType 'HOPPER'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 5
}
}
// LECTERN???
category('LOOM') {
id 'loomTest'
categoryOptions {
inventoryType 'LOOM'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 4
}
}
category('SMOKER') {
id 'smokerTest'
categoryOptions {
inventoryType 'SMOKER'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 3
}
}
category('STONECUTTER') {
id 'stonecutterTest'
categoryOptions {
inventoryType 'STONECUTTER'
rows 1
renderActualRows 1
renderOffset 0
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 2
}
}
category('CRAFTING_TABLE') {
id 'workbenchTest'
categoryOptions {
inventoryType 'WORKBENCH'
rows 3
renderActualRows 3
renderOffset 1
renderHeaderStart 55
renderFooterStart 55
itemsOnRow 3
}
}
insert (['$anvilTest', '$beaconTest', '$blastFurnaceTest', '$brewingTest',
'$cartographyTest', '$dispenserTest', '$dropperTest', '$enchantingTest',
'$furnaceTest', '$grindstoneTest', '$hopperTest', '$loomTest',
'$smokerTest', '$stonecutterTest', '$workbenchTest']) {
item('EMERALD_BLOCK;1;Send test message') {
click {
player.sendMessage '§aGreen button is working properly'
}
}
item('REDSTONE_BLOCK;1;End test') {
locate '$customInventoryTest'
}
}
}
}
JustGregGithub commented
u still need help?
JustGregGithub commented
XD
Misat11 commented
ofc