SoSeDiK
3cf306ce34
Replaced deprecated methods
2018-06-06 12:41:56 +03:00
SoSeDiK
6eb17d1d45
Removed unused imports
2018-06-06 11:46:18 +03:00
Rick
fda8f56f8a
Switched to "continue" as stated. Although... pondering as to why this would have seemed to have worked anyway... the way I did it, in the case of a match, the whole thing quits... which is actually fine if the user just died in a keep-inventory region. If there was a better way of determining the existence of a keep-inventory region from all plugins that might produce one, really, that's what we'd rather be checking for here anyway. This is a fine alternative, but actually identical items will result in only one being kept when dying in a non-keep-inventory situation.
2018-04-22 10:25:44 -04:00
Rick
785cbea08f
I could not use "breaK" as advised as that would completely break the loop and cease checking for duplicates among the remaining items. However, we are only checking against 5 additional slots here, so I've stated them each and made them return if a match is a bit better than setting a variable and all that, this is also more clear about what is going on here. I will state that the previous patch does introduce a limitation: identical soulbound items would be lost. Having exactly duplicated soulbound items prior to a death is a rather extreme situation, but during my testing I actually was using some I duplicated in creative mode and noticed that I would only retrieve one of each, and not the copies. It might be desireable to integrate an option here to only use this logic IF keep inventory regions will be in use somewhere, although not entirely necessary.
2018-04-20 17:53:36 -04:00
TheBusyBiscuit
7b07bc8c61
Merge pull request #630 from meiamsome/network-caching
...
Create a Network class to manage networks in a stateful way
2018-03-25 10:19:07 +02:00
TheBusyBiscuit
3d90994d9f
Merge pull request #632 from meiamsome/fix-509
...
Check if the chunk is loaded instead of relying on exceptions
2018-03-25 10:11:50 +02:00
Oliver Wright
eaa93df83e
Move Block storage to be based on Locations.
2018-03-10 19:22:12 +00:00
Oliver Wright
d21f93239b
AReactor fix & a fix for chargable energy sources
2018-03-10 15:32:16 +00:00
Oliver Wright
2c0dc15e4c
Create a Network class to manage networks in a stateful way
2018-03-10 01:05:15 +00:00
TheBusyBiscuit
b3e5e45b2c
Merge pull request #623 from AtomicScience/master
...
Fixed incompatibility with KeepItems-like plugins
2018-03-03 17:42:43 +01:00
AtomicScience
fb07f1bb32
Fixed incompatibility with KeepInventory
2018-03-03 18:47:54 +03:00
Oliver Wright
273499a230
Simplify error file name generation
2018-03-02 20:03:11 +00:00
Redemption
17cc989012
Documented #retrieve()
...
Credits: @Poslovitch
2018-01-06 16:13:16 +01:00
TheBusyBiscuit
fb4b3ab738
Fixed Arguments
2017-12-29 12:10:21 +01:00
TheBusyBiscuit
f5d9170961
Fixed Import
2017-12-29 12:01:22 +01:00
TheBusyBiscuit
f9f4648303
Fixed ChestTerminal Lore
2017-12-29 11:54:23 +01:00
Florian CUNY
2d38231101
Small performance improvement in CargoManager
...
done by saving the blockinfo to avoid heavy calls. Would probably need later a more reliable "rewrite".
Fixes https://github.com/TheBusyBiscuit/Slimefun4/issues/514
2017-12-21 08:22:57 +01:00
Meta-Win
dbe900b39b
Add files via upload
2017-12-20 00:44:53 -02:00
Meta-Win
a257efa98f
Add files via upload
2017-12-20 00:44:22 -02:00
Meta-Win
aeaa912bf2
Add files via upload
2017-12-20 00:43:51 -02:00
Florian CUNY
475eaae0b0
Fixed typo "Slimfun" to "Slimefun"
2017-12-01 19:28:12 +01:00
TheBusyBiscuit
fe4ec68a35
Merge pull request #502 from Poslovitch/slimefunitem-improvements
...
SlimefunItem : renames of some methods, made ghost configurable, changed "name" to "id" and privatized all fields
2017-11-26 09:50:41 +01:00
Florian CUNY
fd4d678332
Use brackets in loops
2017-11-25 10:31:09 +01:00
Florian CUNY
93f877a2d4
Error reports : prioritized Slimefun Environment (addons, etc)
2017-11-25 10:22:53 +01:00
Poslovitch
502efd862b
Revert requirePermissionToUse (not ready yet)
2017-11-22 20:37:30 +01:00
Florian CUNY
58b9bff978
Made the required permission a field
2017-10-13 21:12:33 +02:00
Florian CUNY
657fd4d112
Added requirePermissionToUse field ( https://github.com/TheBusyBiscuit/Slimefun4/issues/410 )
2017-10-13 20:46:28 +02:00
Florian CUNY
cc79e62f34
Made use of the renamed methods
2017-10-13 16:34:38 +02:00
David Kirchner
393b4835d9
Fix ConcurrentModificationException that occurred when reactor explodes.
...
CraftBukket's HumanEntity.closeInventory() apparently removes the human
from the inventory's viewer list, resulting in an exception when we were
calling closeInventory while iterating over the list of said viewers.
Fixes TheBusyBiscuit/Slimefun4#364 .
2017-10-08 19:46:42 -07:00
Poslovitch
319238f4b3
Fixes ignored frequencies for Cargo
...
Fixes https://github.com/TheBusyBiscuit/Slimefun4/issues/408
Was due to the JSON storage format (everything is String). #getInt was
therefore returning 0.
2017-09-10 16:13:59 +02:00
TheBusyBiscuit
55731ef532
Explicitly declare type arguments
2017-08-24 00:03:49 +02:00
Poslovitch
39d77b5eb5
Documented Slimefun (except GuideHandler related) ; deprecated #addDescription() in favor of #addHint()
2017-08-15 16:37:25 +02:00
Poslovitch
0b54f079e4
Fixes a NumberFormatException when trying to read inexistant frequency of a CargoManager
...
Fixes https://github.com/TheBusyBiscuit/Slimefun4/issues/363
Fixes https://github.com/TheBusyBiscuit/Slimefun4/issues/161
2017-08-10 17:02:38 +02:00
Poslovitch
829fead370
More memory usage improvements
2017-06-22 22:39:19 +02:00
Poslovitch
911903e4a2
Less memory usage for "not unlocked" messages
2017-06-22 22:31:41 +02:00
Poslovitch
e388bf01f1
Added a State enum for SlimefunItem
...
Related to https://github.com/TheBusyBiscuit/Slimefun4/pull/337 ,
https://github.com/TheBusyBiscuit/Slimefun4/issues/231
2017-06-22 22:16:22 +02:00
TheBusyBiscuit
4930d54795
Updated "Unsupported Version" message
2017-06-14 12:35:25 +02:00
John000708
4eed2e1b61
Remove bad code
2017-06-13 19:59:39 +02:00
John000708
cf1850dec8
Update Branch
2017-05-28 20:37:59 +02:00
TheBusyBiscuit
ebfc6f418c
Fixed Round-Robin Mode for Cargos
2017-04-10 10:08:06 +02:00
TheBusyBiscuit
3d21dae93c
Reverted failed fix
2017-04-10 10:00:26 +02:00
TheBusyBiscuit
45554ce457
Fixed Cargo Round-Robin Mode
2017-04-10 09:57:58 +02:00
TheBusyBiscuit
5590118a52
Added elses
2017-04-10 09:46:21 +02:00
TheBusyBiscuit
1962dbb0a5
Chain Armor no longer spams messages
2017-04-09 09:59:45 +02:00
TheBusyBiscuit
4b44c347fe
Removed deprecated code snippet
2017-04-09 09:44:37 +02:00
John000708
e98c66544f
Merge branch 'master' of https://github.com/TheBusyBiscuit/Slimefun4
2017-04-04 19:53:59 +02:00
TheBusyBiscuit
af6ec415b0
Maybe made the Block Storage stuff safer, idk
2017-03-31 14:47:43 +02:00
TheBusyBiscuit
e3e3e67720
Safe Handler
2017-03-27 16:14:52 +02:00
TheBusyBiscuit
b901f885fa
Fixed Block Inventories
2017-03-26 09:31:27 +02:00
John000708
07dbfbd318
Cargo Nodes now listen for canAccessChest()
2017-03-19 17:27:16 +01:00