Jump to content
  • 0

Automatic Crafting Table returns incorrect item when checking item in slot.


Question

Posted

Title: Automatic Crafting Table returns incorrect item when checking item in slot.

Version: 3.1.2

OS: Windows 7 Ultimate SP1

Java Version: 1.7.0-b147 64bit

Description of Problem:

The automatic crafting table (169:0) has an off-by-one bug where using Bukkit to get the item in a slot returns the item from the slots raw number + 1. So, where "view" is the inventory view of the workbench, view.getItem(0) it return the value from slot number 1 instead of 0.

This video shows what I am talking about. ->

The error log is some relevant debugging information from the video (since it is a bit fuzzy)

Error Messages:

N/A

Error Log:


2012-08-26 13:02:57 [iNFO] [NoItem] Inventory Click Event: 

2012-08-26 13:02:57 [iNFO] [NoItem]     Item: STONE

2012-08-26 13:02:57 [iNFO] [NoItem]     Raw Slot: 9

2012-08-26 13:02:57 [iNFO] [NoItem]     View: MOD

2012-08-26 13:02:57 [iNFO] [NoItem]     Type: CHEST

2012-08-26 13:02:57 [iNFO] [NoItem]     Slot: CONTAINER

2012-08-26 13:02:57 [iNFO] [NoItem]     Cancelled: false



2012-08-26 13:03:36 [iNFO] [NoItem] Inventory Click Event: 

2012-08-26 13:03:36 [iNFO] [NoItem]     Item: IRON_INGOT

2012-08-26 13:03:36 [iNFO] [NoItem]     Raw Slot: 0

2012-08-26 13:03:36 [iNFO] [NoItem]     View: MOD

2012-08-26 13:03:36 [iNFO] [NoItem]     Type: CHEST

2012-08-26 13:03:36 [iNFO] [NoItem]     Slot: CONTAINER

2012-08-26 13:03:36 [iNFO] [NoItem]     Cancelled: false

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...