-
Notifications
You must be signed in to change notification settings - Fork 96
Check FireTick during match load and start #879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0a70ecc
Check FireTick during match load and start
CoWinkKeyDinkInc e072f9e
Disable fire spread when match ends
CoWinkKeyDinkInc ed4d0fa
Evaluate original map setting of doFireTick
CoWinkKeyDinkInc 5c68abb
Add additional checker
CoWinkKeyDinkInc 8cd810f
Store gamerules from level.dat, simplify FireTick evaluation
CoWinkKeyDinkInc 753150e
reformat code
CoWinkKeyDinkInc 02ac7ae
Merge branch 'dev' into fix-fire
CoWinkKeyDinkInc 848fc58
Rename String values
CoWinkKeyDinkInc 8ba37e4
Merge branch 'fix-fire' of github.com:CoWinkKeyDinkInc/PGM into fix-fire
CoWinkKeyDinkInc 76ab092
Simplify evaluation
CoWinkKeyDinkInc 005d4e4
Add gamerule values from level.dat into GameRulesMatchModule, adjust …
CoWinkKeyDinkInc 6fe2a9b
Simplify evaluation
CoWinkKeyDinkInc 1163ae6
Merge branch 'dev' into fix-fire
CoWinkKeyDinkInc 1035c6e
Fix daylightcycle evaluation
CoWinkKeyDinkInc bf743a2
Remove getGameRules function
CoWinkKeyDinkInc 0df51cb
Merge branch 'dev' into fix-fire
CoWinkKeyDinkInc 50d0871
Add epic comment
CoWinkKeyDinkInc 00ac84e
Add GameRule eneum, update PGMListener to work with eneum
CoWinkKeyDinkInc ba42dcf
Fix Comment
CoWinkKeyDinkInc 68675b3
Merge branch 'dev' into fix-fire
CoWinkKeyDinkInc ab0c1c3
Fix evaluation of gamemodes from level.dat and XML
CoWinkKeyDinkInc 3ddaf10
Merge branch 'fix-fire' of github.com:CoWinkKeyDinkInc/PGM into fix-fire
CoWinkKeyDinkInc Aug 3, 2021
b3a397e
Fix application order of gamerules in XML
CoWinkKeyDinkInc 038a74b
Merge branch 'dev' into fix-fire
CoWinkKeyDinkInc 84caf3d
Add functions for timesetting
CoWinkKeyDinkInc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package tc.oc.pgm.api.map; | ||
|
||
public enum GameRule { | ||
DO_DAYLIGHT_CYCLE("doDaylightCycle"), | ||
DO_FIRE_TICK("doFireTick"), | ||
DO_MOB_LOOT("doMobLoot"), | ||
DO_TILE_DROPS("doTileDrops"), | ||
MOB_GRIEFING("mobGriefing"), | ||
NATURAL_REGENERATION("naturalRegeneration"); | ||
|
||
/* Unsupported Gamerules: | ||
doMobSpawning | ||
keepInventory | ||
commandBlockOutput | ||
logAdminCommands | ||
randomTickSpeed | ||
reducedDebugInfo | ||
sendCommandFeedback | ||
showDeathMessages | ||
*/ | ||
|
||
private final String id; | ||
|
||
GameRule(String id) { | ||
this.id = id; | ||
} | ||
|
||
public static GameRule byId(String gameRuleId) { | ||
for (GameRule gameRule : GameRule.values()) { | ||
if (gameRule.getId().equals(gameRuleId)) { | ||
return gameRule; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.