Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Closing inventory while moving item causes item to be deleted instead of dropped (Forge) #1981

Closed
rob5251 opened this issue Jan 31, 2018 · 14 comments

Comments

@rob5251
Copy link

rob5251 commented Jan 31, 2018

I am currently running

  • SpongeForge version: 1.12.2-2586-7.1.0-BETA-2866
  • Forge version: 14.23.1.2586
  • Java version: 1.8.0_161
  • Operating System: Win10

Issue Description
In the current recommended version of forge to use with Sponge (2586) there is an issue where if you are holding an item in the inventory (moving with mouse click) and then hit esc or the inventory hotkey instead of the item getting dropped (as normal) the item just gets deleted entirely.

A bump of recommended forge is probably in order to fix this? Not sure if its been fixed in a later release of Forge or not.

@Faithcaio
Copy link
Contributor

Faithcaio commented Jan 31, 2018

I run Forge 2555 2586 in my dev environement and it works fine.
Make sure you are not in creative. Items on cursor will not drop when in creative.

@rob5251
Copy link
Author

rob5251 commented Jan 31, 2018

Is 2555 fine to use with spongeforge build 1.12.2-2586-7.1.0-BETA-2866 though or will I have to revert to spongeforge 1.12.2-2555-7.1.0-BETA-2857?

I always try to make sure I'm running the one recommended for the build.

@Faithcaio
Copy link
Contributor

Oh nvm. I didnt notice it was changed to Forge 2586.

@Faithcaio Faithcaio removed their assignment Feb 1, 2018
@notfood
Copy link

notfood commented Feb 1, 2018

Using

  • spongeforge-1.12.2-2586-7.1.0-BETA-2868.jar

Tried with

  • forge-1.12.2-14.23.1.2586-universal.jar
  • forge-1.12.2-14.23.1.2594-universal.jar
  • forge-1.12.2-14.23.1.2607-universal.jar

Still happening.

My test was to grab a torch, then press escape. The torch kept disappearing.

Commit 25720e4 had no effect

It's not a forge bug by the way, it's not reproducible without sponge.

@Faithcaio
Copy link
Contributor

Faithcaio commented Feb 1, 2018

@bloodmc maybe this only happens in production not dev?

@notfood that commit fixed smth. else. Calling player.closeInventory during some events caused exceptions.

@Faithcaio
Copy link
Contributor

Please try this Sponge build: 1.12.2-2586-7.1.0-BETA-2865.
So we know for sure this is a new issue

@notfood
Copy link

notfood commented Feb 1, 2018

Tested with 1.12.2-2586-7.1.0-BETA-2865

Same issue found

@Faithcaio
Copy link
Contributor

What about the one before 1.12.2-2586-7.1.0-BETA-2863?

@notfood
Copy link

notfood commented Feb 1, 2018

Notice, I'm testing this with 0 mods and 0 plugins.

It's literally forge and spongeforge. It's very easily reproducible.

spongeforge-1.12.2-2586-7.1.0-BETA-2863.jar FAIL
spongeforge-1.12.2-2586-7.1.0-BETA-2862.jar FAIL
spongeforge-1.12.2-2555-7.1.0-BETA-2850.jar FAIL
spongeforge-1.12.2-2555-7.1.0-BETA-2843.jar FAIL
spongeforge-1.12.2-2555-7.1.0-BETA-2842.jar PASS
spongeforge-1.12.2-2555-7.1.0-BETA-2840.jar PASS
spongeforge-1.12.2-2555-7.1.0-BETA-2837.jar PASS

@SpongePowered SpongePowered deleted a comment from notfood Feb 1, 2018
@SpongePowered SpongePowered deleted a comment from notfood Feb 1, 2018
@SpongePowered SpongePowered deleted a comment from notfood Feb 1, 2018
@SpongePowered SpongePowered deleted a comment from notfood Feb 1, 2018
@phit
Copy link
Contributor

phit commented Feb 1, 2018

edit your post please instead of posting 30 comments, thanks for testing this

@notfood
Copy link

notfood commented Feb 1, 2018

Sorry. Got carried away as the time within tests was long. Won't happen again.

Last working version is spongeforge-1.12.2-2555-7.1.0-BETA-2842.jar

@phit
Copy link
Contributor

phit commented Feb 1, 2018

2843 is 83bb1dd

@Faithcaio
Copy link
Contributor

Faithcaio commented Feb 1, 2018

huh so the captured items are just not spawned... but why was is it working for me in dev.
Thanks for testing. I'll try to fix it this evening.

@Faithcaio
Copy link
Contributor

Faithcaio commented Feb 1, 2018

found it:
only happened when SpongeImpl.getGlobalConfig().getConfig().getOptimizations().doDropsPreMergeItemDrops() is false

fixed in SpongePowered/Sponge@5858f2a...1e15970

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants