Skip to content

Instantly share code, notes, and snippets.

View aikar's full-sized avatar
:atom:
Powered by Steak

Daniel Ennis aikar

:atom:
Powered by Steak
View GitHub Profile
/*
* 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;
#!/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
}
#!/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() {
#!/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
[alias]
co = checkout
ci = commit
cp = cherry-pick
st = status
cl = clone
re = rebase
l = log
unstash = stash pop
sync = rebase production
/*
* 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;
/*
* 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;
#!/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)
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
/*
* 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;