Commit graph

337 commits

Author SHA1 Message Date
SenseiKiwi
8d1028ccb5 Changes to CraftingManager
* Fixed a mistake in the crafting recipe for Golden Dim Doors
* Removed static import of fields from mod_pocketDim. There were already
qualified references to those fields in some areas. We should be
consistent.
2014-05-15 06:45:26 -04:00
StevenRS11
d020dd384b toString ftw 2014-05-15 05:53:28 -04:00
SenseiKiwi
3a2c87cce9 Tweaked Monolith Aggro Rate
* Decreased aggro rate to 3 to compensate for Monoliths pre-aggroing up
to aggroCap
* Clarified aggroCap selection
2014-05-06 03:32:14 -04:00
StevenRS11
03ab75b80c tweak 2014-05-06 03:32:14 -04:00
StevenRS11
f4efa7dca2 codemunching 2014-05-06 03:32:13 -04:00
SenseiKiwi
f427e66f6e More Changes to Monoliths
* Fixed issue with Monoliths detecting players through walls
* Changed aggro values from bytes to shorts
* Fixed aggro updates so that aggro levels can decrease
* Fixed upper bound on aggro clamping
* Added client/server-side checks to a few functions to save on
performing pointless checks, such as making calculations for spawning
particles on the server
2014-05-05 22:37:14 -04:00
SenseiKiwi
928adab4cf Minor Change in RiftRegenerator
Removed an unnecessary cast in RiftRegenerator
2014-05-05 19:56:21 -04:00
SenseiKiwi
ef2e9cc561 Merge remote-tracking branch 'upstream/master' 2014-05-05 19:55:43 -04:00
SenseiKiwi
7cabf75128 Overhauled Monoliths
Removed lots of obsolete and unused code from Monoliths. The code is
subdivided more clearly now. The aggro level is sent over a data watcher
instead of sending the texture state.
2014-05-05 19:55:16 -04:00
StevenRS11
9003d924ea Fixed Door Render 2014-05-05 19:10:58 -04:00
SenseiKiwi
b15a8af299 Minor Change
Minor change to a line in CustomLimboPopulator. We should access static
fields through their classes, not instances.
2014-04-30 04:40:33 -04:00
SenseiKiwi
871d2ff1c2 Fixed Golden Door Item ID Mishandling
Keybounce noticed that he was having a persistent item ID conflict with
DD's Golden Doors - the normal doors not the dimensional variant. I
discovered that we have been assigning them the same ID as the Golden
Door block ever since they were first introduced 7 months ago. It didn't
break immediately since Forge adds +256 to item IDs.
2014-04-19 04:28:12 -04:00
StevenRS11
3664e707cf Fixed minor issues
Doors render right now
No longer placing doors on left clicks
2014-04-15 07:27:08 -04:00
StevenRS11
be7cd9d186 More eye tweaks 2014-04-15 04:30:31 -04:00
StevenRS11
d86433ef46 fixed monoliths
everything was terrible
2014-04-13 23:52:51 -04:00
SenseiKiwi
ffe45c729e Fixed Bugs
* Fixed bug with backup directory creation
* Fixed two doorways in SK-FractalCage that were supposed to open but
had been replaced with Eternal Fabric
2014-04-13 16:57:11 -04:00
SenseiKiwi
4dca0eb82b Updated Version
Update our version numbers
2014-04-11 21:32:36 -04:00
SenseiKiwi
a2ef6ef905 Minor Change
Changed DDLogger.logger() to private to guarantee that the logger isn't
being used anywhere in DD, since that could impact performance on
servers.
2014-04-11 20:34:11 -04:00
SenseiKiwi
d192dae945 Improvements to Saving
* Changed saving code to create backups by moving existing files rather
than creating copies and deleting the originals.
* Removed final call to PocketManager.save() in PocketManager.unload().
Since we no longer check if the caller is the client or server and
unload() must be called from both, this prevents clients from trying to
save pocket data locally. A final save() call wasn't needed anyway.
2014-04-11 20:33:06 -04:00
StevenRS11
18460348af stopped logging 2014-04-11 19:27:26 -04:00
StevenRS11
56e522a61a logging changes 2014-04-03 20:15:34 -04:00
StevenRS11
d98b6279de quick fix 2014-04-03 15:55:35 -04:00
StevenRS11
99476f8d70 Merge branch 'master' of https://github.com/StevenRS11/DimDoors
Conflicts:
	src/main/java/StevenDimDoors/mod_pocketDim/saving/DDSaveHandler.java
2014-04-03 15:52:14 -04:00
StevenRS11
aa7ee3c8fe added logger 2014-04-03 14:10:00 -04:00
StevenRS11
41fbcfe0ff Savedata backs up on write now 2014-04-03 14:09:36 -04:00
StevenRS11
582db26cdc Fixed a crash in rift sig placement 2014-04-03 14:06:48 -04:00
SenseiKiwi
71fccfc1e4 Merge remote-tracking branch 'upstream/master' 2014-03-28 02:49:43 -04:00
SenseiKiwi
0491b55f40 Minor Change
Minor changes to comments
2014-03-28 02:31:29 -04:00
SenseiKiwi
cc2def03fd Added Dirty Flag
Added a flag to NewDimData so that we can avoid writing dimensions to
disk if they haven't been modified. They're still rewritten when the
server shuts down.
2014-03-28 02:07:20 -04:00
StevenRS11
41b77c639c Fixed Door on rifts 2014-03-28 00:39:27 -04:00
StevenRS11
19bc9eec99 I HATE YOU GITHUB 2014-03-26 23:19:56 -04:00
StevenRS11
76e9fce9d4 Fixed all doors being placed as dim doors 2014-03-24 21:09:21 -04:00
StevenRS11
42f0656b1b Changes
Made saving a bit more robust, now we only delete ones that where not
modified. Also overhauled door placement, its all handled by the
eventHandler now.
2014-03-24 20:58:36 -04:00
SenseiKiwi
d6b07db3d6 Fixed Conflict with Witchery Mod
* Changed DDTeleporter to stop us from generating exits to Witchery's
Spirit World - this would cause people to lose their items upon leaving
the dimension.
* Changed GatewayGenerator to stop us from generating gateways or rift
clusters in the Spirit World
2014-03-23 17:18:47 -04:00
SenseiKiwi
e5adb43f77 Updated How to Add Dungeons
Updated our dungeon creation guide. It was badly outdated by now.
2014-03-23 11:39:03 -04:00
SenseiKiwi
da579bc23d Stopped Filling Empty Dispensers
Changed FillContainersOperation so that empty dispensers are not filled
with a stack of arrows on import. Just in case someone needs to use
empty dispensers in their design. As far as I can remember, this won't
affect any of our dungeons - arrow traps are rare. The only dungeon that
I can remember is one by Balgor and it was exported with all of its
dispensers loaded.
2014-03-23 11:38:28 -04:00
SenseiKiwi
bf2f5da672 More Dungeons
* Added two exit dungeons: SK-HotSuspense and XombyCraft-RopeBridge
* Removed a duplicate copy of Cere-FloatingAltar that slipped by
2014-03-22 08:00:21 -04:00
SenseiKiwi
687bb73fae Updated SK-FractalCage
* Added a small treasure room that opens when the puzzle is solved and
made the exits in the corners slightly more apparent by placing redstone
lamps.
* Tweaked the redstone a little to correct for a brief signal cutoff.
* Tried to add fireworks that would shoot out when the puzzle was
solved, but it was too hard to secure them against theft while also
getting consistent explosions.
2014-03-20 05:31:02 -04:00
SenseiKiwi
7258ffa7dc Updated pistonFallRuins
Updated the dungeon pistonFallRuins so that it causes less extreme lag
by slowing down and spacing out the timing for the piston traps. Also
reinforced the dungeon against tampering and added lava inside each
piston drop.
2014-03-19 23:08:25 -04:00
SenseiKiwi
8ebaa0f493 Completed Subtree Searches for Dungeon Packs
Completed the implementation of searching through dungeon subtrees to
avoid duplicates in "nearby" rooms
2014-03-19 13:15:30 -04:00
SenseiKiwi
5c44ddefe9 Added Hidden Chests to Snow and Swamp Hubs
Added hidden chests as is the tradition for biome-themed pockets.
2014-03-19 11:53:33 -04:00
SenseiKiwi
4fecf092a3 Changed Default Provider and Biome IDs
XombyCraft has been kind enough to research which provider and biome IDs
are used by major mods. He found some ranges of free IDs and suggested
changing our defaults to sidestep conflicts with Biomes o' Plenty.
2014-03-19 07:46:21 -04:00
SenseiKiwi
ac8874f96a Fixed Crash with ChickenChunks
Fixed a nasty crash to desktop. It happens when ChickenChunks is
installed and a new world is generated with HardcoreLimboEnabled = true.
It appears that ChickenChunks forces a chunk to generate in Limbo if
LimboProvider.canRespawnHere() = true, which is the case if hardcore
Limbo is enabled. Our Monolith and gateway generation code runs as a
tick handler instead of through standard world gen calls. I believe
Limbo is unloaded immediately after the chunks are generated because no
players are around. That would cause DimensionManager to return null for
Limbo because it's not loaded, which would crash our code. We probably
dealt with this for Monoliths by adding a check. Now it happened again
because we didn't take precautions while calling the gateway generation
method. I've added code to forcefully load Limbo if it's not loaded.
2014-03-19 07:43:05 -04:00
SenseiKiwi
484a44a063 Minor Change to LimboProvider
Changed the condition on LimboProvider.canRespawnHere() so that players
can respawn in Limbo even if LimboEnabled is false. LimboEnabled only
controls whether players are sent to Limbo when they die in a pocket. It
does not prevent players from ending up in Limbo because of Monoliths.
If Hardcore Limbo is enabled, it stands to reason that people should be
respawning in Limbo anyway.
2014-03-19 07:04:46 -04:00
SenseiKiwi
ddcb0ff42e Added Dungeons to Ruins
* Added three of Balgor0's dungeons to the Ruins pack
* Made aesthetic and functional improvements to the dungeons
2014-03-19 00:27:26 -04:00
SenseiKiwi
3d8a9aaf27 Removed Balgor Pack
After finally getting the dungeons to load, I've determined that only
half of the rooms should be included. The three remaining rooms should
definitely stay. That's not much for a pack so I'm going to make some
modifications to the schematics and include them as part of Ruins.
2014-03-18 20:30:09 -04:00
SenseiKiwi
300228ea24 Fixed Limbo Gateways (again)
Forgot to add the line for creating the dungeon link. Done and tested.
2014-03-18 05:01:09 -04:00
SenseiKiwi
c980c797e8 Fixed Limbo Gateways and Minor Change
* Fixed Limbo gateways. I accidentally broke them while overhauling
gateways in general.
* Changed references to BaseItemDoor.placeDoorBlock() to use
ItemDoor.placeDoorBlock() instead. We should refer to the original class
that implements the function.
2014-03-18 04:56:07 -04:00
SenseiKiwi
b1b1035b5f Integrated Balgor Pack and Fixed Bugs
* Set up the necessary code in DungeonHelper so that Balgor is
registered along with the other bundled packs.
* Improved the code for registering bundled packs to reduce the number
of paths we need to hardcode and to crash DD if a pack fails to load. A
crash would be inevitable no matter what since bundled packs are
integral to DD.
* Corrected an invalid generation rule for Balgor. It's set to select
random dungeons infinitely for now. I'll add an exit room later and
change the rule to force an exit. Balgor is still unusable until its
schematics get proper doors.
* Fixed PocketBuilder to actually check the results of validating
schematics before we try to build them. This was causing cryptic error
messages when flawed schematics were loaded (e.g. rooms without proper
doors) and could have caused serious problems during dungeon
regeneration. Don't ignore validation!
2014-03-17 19:03:32 -04:00
SenseiKiwi
f8982a871d Minor Change
Removed a misleading comment from the rules.txt for Balgor
2014-03-17 08:57:31 -04:00
SenseiKiwi
a92b07d976 Overhauled Gateway Code
* Split off schematic-related functionality into BaseSchematicGateway.
* Moved the default implementations of many methods to the base classes
because having a bunch of duplicate stubs all over the place was a
waste.
* Removed methods that were redundant or weren't being used for
anything.
* Added support for importing schematics while ignoring air blocks
through IBlockSetter - now our gateways are copied in without air by
default.
* Fixed bugs that would have prevented the sandstone gateway from
generating.
* Removed the code in generate() that would cause dungeon
pre-generation. We should solve this by attaching data to links instead
and it's not a feature that we're even using right now (everything uses
the default pack).
* Fully documented our functions - it's so beautiful...
2014-03-17 06:34:02 -04:00
SenseiKiwi
f4b619635e Rearranged dd-rift Workflow
Changed dd-rift and dd-random so that rifts are only placed after a
dungeon is generated successfully. We also delete the link if generation
fails to clean up after ourselves. Also changed
PocketBuilder.generateSelectedDungeonPocket() so that its checks are
stricter and we validate dungeons before allocating a dimension.

This resolves one of our old issues: "Rearrange workflow in dd-rift to
prevent rifts from being created if no dungeon gets loaded and to
prevent dimension registration if the dimension cannot be populated"
2014-03-17 03:04:06 -04:00
SenseiKiwi
3966f420db Improvements to Dungeon Selection
Changed the code for dungeon selection in various classes so that rather
than allocating and passing around the dimension where the dungeon will
be generated, we instead pass around the parent dimension. This
simplifies our code and moves us toward avoiding stray dims when dungeon
selection fails and to solving the dungeon pre-generation problem with
gateways.
2014-03-17 02:37:57 -04:00
SenseiKiwi
151f1a93a5 Fixed Tooltip for ItemStabilizedRiftSignature
Fixed the tooltip for the Stabilized Rift Signature - it was a copy of
the Rift Signature's tooltip.
2014-03-16 22:55:26 -04:00
SenseiKiwi
1e5e8dcf2b Added Subtree Searches for Dungeon Packs
Added a new setting to dungeon pack configs called
"DuplicateSearchLevels", which allows us to configure how many levels up
of the dungeon tree should be checked to avoid duplicating rooms used in
that subtree. In other words, it lets us avoid repeating rooms used in
neighboring branches of the dungeon. The setting has been added but it's
not fully supported yet - some additional code is needed in
DungeonHelper and it's not trivial to implement. I took a break because
doing it wrong could break dungeon selection.
2014-03-16 22:44:13 -04:00
SenseiKiwi
188ec6d68b Minor Change
Minor name change
2014-03-16 10:08:37 -04:00
SenseiKiwi
cfd48e796a Added Settings and Minor Preemptive Fix
Added a setting to DDProperties for controlling the max distance that
players can be moved randomly when they're sent to Limbo. We previously
had a setting for the same except for leaving Limbo. Cleaned up some of
the related code a little. Added another setting for the chance of rifts
dropping World Thread on block destruction. Also fixed a potential NPE
in EventHookContainer that could arise theoretically arise if a
non-Vanilla door was attached to a rift.
2014-03-16 10:01:35 -04:00
SenseiKiwi
84eee1b155 Added More Dungeons
Added Cere-JumpPass, Cere-TransferTunnel, Cere-GreatHall,
SK-WatchedForkLeft, and SK-WatchedForkRight. Made a minor change to
SK-RaceTheLight.
2014-03-16 04:13:20 -04:00
SenseiKiwi
4f2f86535b Minor Changes
Cleaned up the code for placing Vanilla doors on rifts in
EventHookContainer. Unfortunately, there's a section that I don't
understand and that I feel has a bug. Remember that comments are very
helpful.
2014-03-15 03:54:41 -04:00
SenseiKiwi
d1a2476a4e Quick Fix for Limbo Music Crash
The following small change deals with a strange background-music-related
crash. Wasn't this issue fixed for Jaitsu and Aether II? I'm not sure
what's the cause but I've added a check to prevent the NPE. Please deal
with this most robustly in the future.
2014-03-14 17:22:55 -04:00
SenseiKiwi
7e8fe10c7d Split dd-rift into Separate Commands
Split dd-rift into dd-rift, dd-random, and dd-list
2014-03-14 08:35:44 -04:00
SenseiKiwi
cc46d90ed4 Updated Rift Blade Code
Removed duplicate code from ItemRiftBlade. It was code that duplicated
the functionality of ItemSword since ItemRiftBlade didn't extend
ItemSword originally. Also updated the tooltip text to remove mentions
of the old door-rotating ability. That's not provided anymore since
doors are easily broken and replaced now. Extended teleport range
slightly.
2014-03-14 07:07:35 -04:00
SenseiKiwi
7a043dfa65 Added Crash on Provider ID Conflict
Added a check so that Dimensional Doors crashes if another registers our
provider IDs. This will show people that something needs fixing instead
of us risking strange bugs.
2014-03-14 06:41:42 -04:00
SenseiKiwi
941cecb372 Tweaks to Loot
Set loot chests to generate 6 stacks of items instead of 5 stacks.
Increased the maximum amount of World Thread per stack from 8 to 12
threads. Increased the chance of encountering a grave chest to 1 in 6
instead of 1 in 7.
2014-03-13 05:58:02 -04:00
SenseiKiwi
01fe9cc87e Added Config Setting for Limbo Escape
Added a configuration option for toggling whether players can teleport
out of Limbo by walking over Eternal Fabric. This became viable after
Rift Gateways began generating in Limbo again. Keybounce has expressed
an interest in using option to deal with the issue of players returning
home since his Overworld won't have gateways.
2014-03-13 05:47:04 -04:00
SenseiKiwi
f40e1e0a91 Change to Dungeon Exits Chances
Changed dungeon exits so that they have a minimum 15% chance of exiting
to the Overworld if a dungeon's root dimension isn't the Overworld. Also
made a minor change to the existing special case for the Nether - the
minimum 20% chance only applies if the root dimension isn't the Nether.
2014-03-13 05:43:26 -04:00
SenseiKiwi
f1eff42a33 Improvements to Crafting Recipes
Added a configuration option for adjusting the number of World Threads
needed to create one Stable Fabric. A few users have asked for this to
be available. The default setting is our usual 8 thread for each fabric.
Also overhauled our recipes to remove blank item slots, allowing them to
be crafted on any line of the grid, as long as all the items are aligned
properly.
2014-03-12 10:27:32 -04:00
SenseiKiwi
3a91d9a6ec Minor Adjustments to Rift Spread
Made a small correction to the condition on max ancestors. Also
thoroughly tested this code to ensure that it really does limit rift
spread. Currently, 2 initial rifts will cause 4 more rifts to be created
eventually.
2014-03-12 07:05:23 -04:00
SenseiKiwi
8d28dc1517 Fixed Uncontrolled Rift Spread
Switched rifts over to using link.childCount() to track spread instead
of the hasGrownRifts flag in the tile entity. The flag had the flaw that
if the rift was replaced by a block, the flag would reset and the rift
could spread again. I think I remember this being intended as punishment
for messing with rifts but it's a problem when combined with World
Thread farming.
2014-03-12 06:06:45 -04:00
SenseiKiwi
5db2b35850 Minor Fix
I forgot to uncomment the line for rifts spawning Endermen.
2014-03-12 05:12:46 -04:00
SenseiKiwi
73cb5ccb6c Fixed Rifts Spreading through Walls
Fixed the issue of rifts spreading through walls. We tried using
raytracing but rifts would always "leak" out of unbreakable enclosures.
With this latest change, rifts spread with the same logic that
determines which blocks are reachable to them.
2014-03-12 05:08:49 -04:00
SenseiKiwi
836eb8a7e0 Added Support for Cluster and Gateway Filters
Added a per-save config file called DimDoorsWorld.cfg. Its corresponding
class is DDWorldProperties. This class supports whitelisting and
blacklisting dimensions for Rift Cluster and Rift Gateway generation.
Note that our ban against generating gateways in the Nether and The End
still applies regardless of those settings. The new config file is
loaded before the server starts initializing terrain. Also moved
DDProperties to another package alongside DDWorldProperties - that
required updating references in most of the mod's files.
2014-03-11 05:38:40 -04:00
SenseiKiwi
946ac37a27 Changes to Schematics
Added SK-RaceTheLight to our schematics. Changed the weights on
Cere-FloatingAltar and Cere-PuzzleWall to 75 (previously 100). Fixed
what appears to be a mistake pasted into ruins.txt and also updated it
for the latest dungeons.
2014-03-11 01:31:10 -04:00
SenseiKiwi
b393c763a9 Minor Change
Minor change to configuration explanation
2014-03-09 10:07:35 -04:00
SenseiKiwi
7b4d1cc2f1 Fixed Door Bug
Fixed the bug referenced in the previous commit that caused doors to
break instantly.
2014-03-07 22:21:34 -04:00
SenseiKiwi
576ac0aae2 Fixed Double Door Textures
Fixed the way textures are applied so that doors from our mod can appear
as double doors. Renamed door textures to be consistent with Minecraft
door textures. Got rid of a few obsolete textures. Unfortunately,
something broke with door blocks updating. I need to fix that in the
next commit.
2014-03-07 22:03:20 -04:00
SenseiKiwi
ee72f3248e Removed Corium Assets
Removed leftover assets for Corium
2014-03-07 21:38:15 -04:00
SenseiKiwi
db91dfce5a Minor Change
Minor spacing change @.@
2014-03-07 20:17:30 -04:00
SenseiKiwi
b68de9eabd Improved Door Code and Removed Hack
Improved some of our door code by giving some of our variables real
names. Also found a hack in BaseDimDoor.isDropped() and a strange
comment that said "I have no idea, but sometimes this is returned as the
blockID instead of metadata."  I finally figured out that due to some
random mistake introduced in another function, idDropped() sometimes
received a block ID instead of metadata, which is what that comment
referred to. I fixed the cause and removed the hack.
2014-03-07 20:16:28 -04:00
SenseiKiwi
89baf624eb Minor Improvements to Biomes
Shifted the duplicate code from our biome classes into a single parent
class. Also added checks so that Minecraft crashes if a biome ID
conflict occurs. This is to put an end to the recent streak of posts on
our MCF thread about people experiencing issues because DD and BoP have
conflicts out of the box.
2014-03-07 18:35:20 -04:00
SenseiKiwi
baa5555547 Fixing Build Issue with DDCommandBase
I copied two functions from CommandBase into DDCommandBase because their
absence is breaking our builds on Technic and Dryware Jenkins. I have no
idea why that's happening. My copy of MC's source code has those
functions in CommandBase and my code compiles without a problem.
2014-03-07 17:41:12 -04:00
SenseiKiwi
60c2cc4710 Dropped Support for Structure Gen Flag
Dropped support for Minecraft's structure generation flag because
several other mods ignore it and supporting it can give the appearance
that DD isn't working properly. We already have settings for disabling
gateways in our config file.
2014-03-07 15:15:22 -04:00
SenseiKiwi
6f3d03b660 Changed Monolith Config
Changed the Monolith teleportation setting so that it's always written
to the config file instead of being secret. Steven agreed to this. o_o
2014-03-07 02:21:33 -04:00
SenseiKiwi
b2dfb35a72 Rotation Fixes and Schematic Changes
Fixed rotations for hopper and droppers. Hoppers were failing because
powered hoppers have different metadata. Droppers were just missing from
the list of oriented blocks. Fixed the wooden buttons on Cerevisiae's
altar room and added her puzzle room once hoppers were working reliably.
2014-03-07 01:17:14 -04:00
SenseiKiwi
62bd3bd19e Changes to Commands
Made some minor changes to the way that we register commands with
Minecraft. Also changed the way that we generate onCommandUsage()
strings so that the style of our outputs is consistent with that of
Minecraft and Forge commands. It seems the way the messages were
generated changed for MC 1.6. Finally, removed compareTo() from
DDCommandBase since it was completely unnecessary (CommandBase already
does the same) and casting objects to CommandBase was causing errors
with some Chicken Bones commands that directly implemented ICommand.
2014-03-06 21:32:38 -04:00
SenseiKiwi
a8e37da4bc Minor Change
Just sprucing up some config stuff...
2014-03-06 18:27:03 -04:00
SenseiKiwi
bbd0b1d0fe Fixed Client Gateway Notification and NPE
Fixed the issue with clients not receiving notifications of gateways
being built into the world because we were modifying chunk data
directly. Our schematic classes now support building through World
instead of directly writing to the underlying chunks. Also fixed an NPE
that was introduced last night when I changed which line
GatewayGenerator was initialized on in mod_pocketDim.
2014-03-06 13:44:31 -04:00
SenseiKiwi
9bba789f0b Updated Limbo Decay Immunity
Updated the list of blocks that are immune to Limbo decay to include
Golden Doors and Golden Dimensional Doors.
2014-03-06 11:33:45 -04:00
SenseiKiwi
f01222afee Updated Version Numbers
Updated all version numbers manually. Hopefully we'll automate this in
the future.
2014-03-06 02:11:05 -04:00
SenseiKiwi
196e79f437 Moved GatewayGenerator into Gateways Package
Moved the GatewayGenerator class to another package.
2014-03-05 21:57:15 -04:00
SenseiKiwi
4ec84f9b86 Fixed NPE in EventHookContainer
Fixed an NPE that would occur because mod_pocketDim.deathTracker was set
to null before the last onWorldSave event was triggered when a server
was shutting down.
2014-03-05 21:53:50 -04:00
SenseiKiwi
aea1a9a7c5 Changes to Loot and Skulls
There is 5% chance that grave chests will contain the head of a random
player that has died in a pocket dimension; there is a 20% chance of it
being a special head. Also moved Ghast Tears to grave chests and removed
Eyes of Enders as loot. Also made FoR loot more rare but increased the
amount given out so that the average amount picked up should be the same
as before. World Thread is slightly less common in response to being
easier to farm from rifts.
2014-03-05 21:39:54 -04:00
SenseiKiwi
6152f39791 Changes to EventHookContainer
Added code to save DeathTracker data when then Overworld saves, but only
if it's been modified since the last time it was saved. Also changed how
we handle player deaths in pocket dimensions. Now we have two death
handlers. There is a high-priority one that sends players to Limbo only
when Limbo preserves their inventories. The other is a low-priority
handler that sends players to Limbo only when inventory preservation is
disabled. This gives players a chance to keep their inventories if
another mod would have revived them without that penalty.
2014-03-05 21:32:52 -04:00
SenseiKiwi
88656f5ad4 Minor Change
Minor change to spacing in PocketManager
2014-03-05 20:24:29 -04:00
SenseiKiwi
cd7cf4e7ca Added DeathTracker and Removed PlayerTracker
Added DeathTracker - a class for tracking the deaths of players on the
server while in pocket dimensions. It'll be used for generating skulls
for grave chests. Also removed PlayerTracker since it wasn't being used
for anything at all. I'm guessing it was supposed to be used for
something later. We can restore it if it's ever needed.
2014-03-05 20:24:07 -04:00
SenseiKiwi
8cb651030a Cleaned up Initialization for GatewayGenerator
Cleaned up the code for initializing GatewayGenerator. We had some
static fields that didn't need to be static and we could just initialize
gateways from the class's constructor.
2014-03-05 14:22:52 -04:00
SenseiKiwi
310efb9781 Changes to Rift Regeneration
Moved a little of the regeneration code to BlockRift to reduce duplicate
code. Changed RiftRegenerator to iterate over loaded worlds instead of
all worlds. Removed forced rift generation call in
EventHookContainer.onWorldLoad() - I feel it would have minimal
benefits. Rifts now drop World Thread upon regeneration. Generally
cleaned up the code in FastRiftRegenerator and RiftRegenerator.
2014-03-04 06:41:36 -04:00
SenseiKiwi
0b14dbf453 Minor Change
Removed obsolete variable
2014-03-04 04:50:28 -04:00
SenseiKiwi
06bb624cd0 Removed Chance Correction for Nether Gateways
Removed code related to a correction factor that would compensate for
gateway generation failing a lot more frequently in the Nether. We don't
use that approach in the Nether anymore.
2014-03-04 04:47:08 -04:00
SenseiKiwi
175fa41318 Disabled Nether Gateways
Disabled Nether Gateways temporarily pending their completion
2014-03-04 04:40:40 -04:00
SenseiKiwi
93f2f6c701 Added Config Settings for Nether Gateways
Added config settings for the chance of generating a Rift Gateway in a
Nether Fortress. Also made it so that DD does not override Nether
Fortress generation if fortress gateways are disabled in some way.
2014-03-04 04:39:57 -04:00
SenseiKiwi
47f7e280a7 Removed References to Corium
Removed references to experimental Corium blocks and fluids.
2014-03-04 04:11:33 -04:00
SenseiKiwi
6a5fff3b5a Changes to Rift Immunity
Changed rifts to consider block blast resistance instead of block
hardness. Some mods offer defensive blocks that stop explosions but have
low hardness. This addresses that issue. The minimum resistance allows
obsidian to resist rifts.
2014-03-04 03:54:46 -04:00
SenseiKiwi
a920a7d65b Fixed Missing Textures and Changed World Thread
Fixed the code for retrieving textures for ItemRiftBlade,
ItemRiftSignature, and ItemRiftRemover. Renamed Rift Blade item texture
again due to capitalization issues. Replaced World Thread texture with a
dark variant of MC's String - we can switch to another texture later.
2014-03-03 21:44:04 -04:00
SenseiKiwi
4889b94b8b Minor Change
Messing with the Rift Blade texture's name again
2014-03-03 21:26:46 -04:00
SenseiKiwi
7e964adb7a Removed Redundant Textures
Removed copies of item textures that simply had other names. Some
textures are broken now. I'll fix that in a moment.
2014-03-03 21:16:44 -04:00
SenseiKiwi
afcf62b95b Minor Change
Renamed the Rift Blade texture to change its capitalization under
Windows
2014-03-03 21:11:50 -04:00
StevenRS11
09010f9fef Fixed possible GC crash 2014-02-06 21:05:45 -05:00
StevenRS11
55a8719748 Final savedata fixes 2014-01-28 14:05:43 -05:00
StevenRS11
bc6b323b57 Merge pull request #136 from SenseiKiwi/nether
Implemented Nether Gateways
2014-01-28 09:05:33 -08:00
SenseiKiwi
78d7db0f75 Implemented Nether Gateways
Completed Nether gateways as part of Nether fortresses.
2014-01-28 07:02:11 -04:00
StevenRS11
1dc7ee7a29 Last tweaks 2014-01-27 23:45:01 -05:00
StevenRS11
18c11ee24e Overhauled loading 2014-01-27 22:13:32 -05:00
StevenRS11
ac7dbab39f loot tweaks 2014-01-27 18:07:19 -05:00
StevenRS11
d725ce6b5e loading fixed 2014-01-27 17:31:13 -05:00
StevenRS11
c935156b71 working on saving 2014-01-27 17:01:23 -05:00
StevenRS11
ca42be0a5e debug 2014-01-27 16:25:49 -05:00
StevenRS11
c830a8e812 build 2014-01-26 14:32:28 -05:00
StevenRS11
792979d4f1 Merge pull request #135 from SenseiKiwi/master
Cleaned Up FastRiftRegenerator
2014-01-26 11:30:19 -08:00
StevenRS11
523025365a removed default nether gateways 2014-01-26 14:27:44 -05:00
StevenRS11
d52f0ed2c7 Minor Tweaks 2014-01-26 13:39:09 -05:00
SenseiKiwi
7700d72a99 Cleaned Up FastRiftRegenerator
Cleaned up the code in FastRiftRegenerator - mostly spacing, but also
removed a pointless null check. It wouldn't matter because the reference
was being accessed before it was checked and it should be impossible for
it to be null.
2014-01-26 12:01:04 -04:00
StevenRS11
415a3c29d7 removed rotation mechanic 2014-01-26 04:26:09 -05:00
StevenRS11
1705182c67 Various Fixes 2014-01-26 04:10:35 -05:00
StevenRS11
d921982c75 Added ability to place vanilla doors on rifts 2014-01-26 03:28:27 -05:00
StevenRS11
12225d8214 fixed limbo music 2014-01-26 02:05:47 -05:00
StevenRS11
4271d47d9d fixed drops 2014-01-26 01:38:43 -05:00
StevenRS11
b105d002c5 Fixed doors slamming shut on pressure plates 2014-01-26 00:53:40 -05:00
StevenRS11
a13fc069eb Fixed rotations and rift regen. Sorta. 2014-01-26 00:00:20 -05:00
SenseiKiwi
d8038a7165 Merge remote-tracking branch 'upstream/master' 2014-01-24 07:18:15 -04:00
SenseiKiwi
149e0319f1 Removed Exit Platforms for Safe Cases
Updated our code to stop Fabric of Reality platforms from generating
under exits all the time. Now they generate only when the supporting
blocks are replaceable (in which case they're replaced by FoR) or when
they're not opaque solids or have tile entities (then FoR generates on
top). The exit search algorithm treats replaceable non-liquid blocks as
air, so an attempt is made to build against the ground and not on top of
replaceable blocks. The area around the door is cleared of blocks to
avoid killing the player with lingering replaceable blocks that might be
harmful, like poison ivy.
2014-01-24 07:16:32 -04:00
StevenRS11
dd30dc619c Fixed gateway crashes 2014-01-24 01:26:19 -05:00
StevenRS11
30d789518d Gateways completed
Also added limbo gateways
2014-01-23 22:10:46 -05:00
SenseiKiwi
3079e546a1 Fixed Gateway Crash (for real)
Fixed a bug in BaseGateway that would cause it to still crash servers
during world generation. The import filters must be applied before
searching for doors because GatewayBlockFilter uses Forge-provided block
IDs and not the standard export values. Also fixed a comment in
yCoordHelper that cut off strangely.
2014-01-22 17:12:06 -04:00
SenseiKiwi
8d372fadff Chunk Bug Fixes
Added chunk.setChunkModified() to other classes that were missing it. We
have several copies of setBlockDirectly() spread around that needed
updating. Also made pockets use FoR instead of glowstone. =P
2014-01-22 05:57:07 -04:00
SenseiKiwi
ffa033496d Merge remote-tracking branch 'upstream/master' 2014-01-22 05:46:43 -04:00
StevenRS11
4e85dbec7e Fixed pockets not always saving completely 2014-01-22 04:14:34 -05:00
SenseiKiwi
70795b6475 Minor Change
Added a warning on some hacky code for sending dim data.
2014-01-22 05:10:50 -04:00
SenseiKiwi
1971b97dc4 Merge remote-tracking branch 'upstream/master' 2014-01-22 04:50:51 -04:00
SenseiKiwi
ce0d4f9bf9 Updated DDTeleporter
Updated DDTeleporter to have a fixed minimum chance of sending the
player to the Nether when using a dungeon exit. This also allows players
to reach the Nether without ever having been there before using a Nether
portal - that was previously impossible since DD would not "know" that
the Nether existed. Also cleaned up the code a bit and possibly fixed a
bug that would cause players to get teleported into walls.
2014-01-22 04:49:38 -04:00
StevenRS11
f31eb5a2ef Fixed rift remover finally 2014-01-22 03:13:08 -05:00
StevenRS11
47f9048d44 Rift spread fixed 2014-01-21 14:10:00 -05:00
StevenRS11
876e3eb4e6 rifts spawn world thread 2014-01-21 13:18:20 -05:00
StevenRS11
5d80170b52 Monoliths have no collision, now 2014-01-21 04:15:48 -05:00
StevenRS11
26c8581857 Terror 2014-01-21 03:38:02 -05:00
StevenRS11
465449abf2 Fixed Repo Goofyness 2014-01-21 03:14:14 -05:00
StevenRS11
ed77f096c2 Enderman start out hostile 2014-01-21 02:13:25 -05:00
StevenRS11
357db5e34d Fixed orientation and transient doors 2014-01-21 01:33:56 -05:00
StevenRS11
6bf70aebdb Fixed up monoliths 2014-01-20 19:34:32 -05:00
StevenRS11
ed92dc04dc Gave monoliths tranparency 2014-01-20 17:35:38 -05:00