This file contains 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
/* | |
* Copyright (c) 2016. Starlis LLC / dba Empire Minecraft | |
* | |
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval | |
* | |
*/ | |
package com.empireminecraft.systems; | |
import com.empireminecraft.api.meta.Meta; |
This file contains 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
#!/bin/bash | |
cd /home/aikar/ssd-projects/paper-auto/ | |
function hardFail() { | |
git rev-parse HEAD > .git/hard-fail | |
>&2 echo -e "$@" | |
echo -e "$@" | notify-paper-devs.sh "Paper Automated Updates" | |
cp .git/last.log .git/lastfail.log | |
exit 1 | |
} |
This file contains 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
#!/bin/bash | |
cd /home/aikar/ssd-projects/paper-auto/ | |
function hardFail() { | |
git rev-parse HEAD > .git/hard-fail | |
>&2 echo -e "$@" | |
echo -e "$@" | notify-paper-devs.sh "Paper Automated Updates" | |
exit 1 | |
} | |
function alertStatus() { |
This file contains 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
#!/bin/bash | |
cd /home/aikar/ssd-projects/paper-auto/ | |
function hardFail() { | |
git rev-parse HEAD > .git/hard-fail | |
>&2 echo "$@" | |
exit 1 | |
} | |
function resetBranch() { | |
set -e |
This file contains 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
[alias] | |
co = checkout | |
ci = commit | |
cp = cherry-pick | |
st = status | |
cl = clone | |
re = rebase | |
l = log | |
unstash = stash pop | |
sync = rebase production |
This file contains 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
/* | |
* Copyright (c) 2016. Starlis LLC / dba Empire Minecraft | |
* | |
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval | |
* | |
*/ | |
package com.empireminecraft.util; | |
import com.empireminecraft.EmpirePlugin; |
This file contains 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
/* | |
* Copyright (c) 2017. Starlis LLC / dba Empire Minecraft | |
* | |
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval | |
* | |
*/ | |
package com.empireminecraft.features.survival.mobs.enraged; | |
import com.destroystokyo.paper.event.entity.EntityRemoveFromWorldEvent; |
This file contains 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
#!/bin/bash | |
# tweaked from https://gist.github.com/sipa/6951837 | |
# This script will locally construct a merge commit for a pull request on a | |
# github repository, inspect it, sign it and optionally push it. | |
# The following temporary branches are created/overwritten and deleted: | |
# * pull/$PULL/base (the current master we're merging onto) | |
# * pull/$PULL/head (the current state of the remote pull request) | |
# * pull/$PULL/merge (github's merge) |
This file contains 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
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java | |
index 1f50004cb..1fdc2ac6e 100644 | |
--- a/src/main/java/net/minecraft/server/Chunk.java | |
+++ b/src/main/java/net/minecraft/server/Chunk.java | |
@@ -1386,7 +1386,7 @@ public class Chunk implements IChunkAccess { | |
throw new RuntimeException("Error while adding chunk to cache. Too many neighbors"); | |
} else { | |
if (this.K()) { | |
- ((IAsyncTaskHandler) this.world).postToMainThread(this::E); | |
+ MCUtil.ensureMain(this::E); // Paper - use processQueue instead of the other queue |
This file contains 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
/* | |
* Copyright (c) 2017. Starlis LLC / dba Empire Minecraft | |
* | |
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval | |
* | |
*/ | |
package com.empireminecraft.systems.tasks; | |
import com.empireminecraft.user.EmpireUser; |