Commit graph

13 commits

Author SHA1 Message Date
LordMZTE 97a3dc12a6
chore: format code 2023-01-03 17:47:36 +01:00
Pahimar 8c3c9a6fde Fix logic derp in isLearnable/isExchangeable that was causing everything to be broken and on fire. Closes #1067
(cherry picked from commit 63ac5b0819c15d372eeb7082a2935a001d01c494)
2021-12-03 23:49:59 -06:00
Pahimar 2aa81c0457 A more efficient way of doing the same check in the last commit
(cherry picked from commit f119a3a907070793be1e7b142be76706c32aa847)
2021-12-03 23:49:58 -06:00
Pahimar e056caee88 Added more TRACE level logging to PlayerKnowledgeRegistry
Improved logic in BlacklistRegistry.isLearnable and BlacklistRegistry.isExchangeable to check it the itemstack is a member of an ore dictionary entry which is blacklisted. If it is, it's not learnable/exchange

(cherry picked from commit 7ac01e09a6b37561c6bd2fc34fe1768f682cf0cd)
2021-12-03 23:49:58 -06:00
Pahimar 7966625965 Some extra NPE protection for people that may try to use the Blacklist Registry before EE3 gets to it's preinit phase 2016-05-28 08:23:31 -04:00
Pahimar 437470f9e7 Initialize the Blacklist Registry in Init
Rename ItemHelper to ItemStackUtils
Change the way OreStack identifies an OreStack from a list of itemstacks. Resolves #923
Added some more test cases to VanillaTestSuite
2016-05-27 16:03:14 -04:00
Pahimar 41ae098ced Fix bug where the exchange blacklist was being loaded with the values from the knowledge blacklist 2016-05-25 12:42:18 -04:00
Pahimar 85f8d4bfa8 Simplify the energy value test suite and remove more deprecated classes 2016-05-25 11:01:07 -04:00
Pahimar e9f834555f When ops make changes to the servers blacklist entries, the change is sent out to all currently logged in players so that they remain in sync with the servers entries. 2016-05-25 10:17:40 -04:00
Pahimar 73fd3a4e28 Added more NPE protection to BlacklistRegistry loading. Closes #1058 2016-05-25 09:56:42 -04:00
Pahimar 30c0eb46b7 Fix a possible NPE in the FluidStack comparator
Post calculation energy values set by command now send the new energy value mapping to all currently logged in players
Added methods for devs to see what items are currently blacklisted in the blacklist registry proxy
Added methods for devs to see what energy values are currently assigned in the energy value registry proxy
BlacklistRegistry contents are now synchronized with players when they log into a server, enabling players to play on different servers with different blacklist configurations without needing to update their own configs
Fixed issue in synching of all energy values where the incorrect map was used to synch against on the client side
2016-05-24 23:12:49 -04:00
Pahimar c179405dab Fixed a bug where removing something from a blacklist didn't trigger a save, added some commands for adding/removing the currently held item to/from a blacklist, and changed the set energy commands to manage blacklist entries depending on values used (if the value is 0 then the item is blacklisted) 2016-05-24 14:58:56 -04:00
Pahimar 2046edf3fb Rewrote the Ability system to be what it was really trying to be, a blacklist registry. Also fixed writing the data to a global area, and made it one file per blacklist. Fixes #898 and #991 2016-05-23 17:47:31 -04:00