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
#!/usr/bin/env bash | |
if [ -z "$1" ]; then | |
echo "$0 <prID>" | |
exit 1; | |
fi | |
repo=$(git remote get-url origin | sed -E 's/(.*@)?github.com(:|\/)//g' | sed 's/.git$//g') | |
data=$(curl -q https://api.github.com/repos/$repo/pulls/$1 2>/dev/null) | |
url=$(echo -e "$data" | grep --color=none ssh_url | head -n 1 |awk '{print $2}' | sed 's/"//g' | sed 's/,//g') | |
ref=$(echo -e "$data" | grep --color=none '"head":' -A 3 | grep ref | head -n 1 |awk '{print $2}' | sed 's/"//g' | sed 's/,//g') | |
prevbranch=$(\git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\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
diff --git a/src/main/java/net/minecraft/server/CrashReport.java b/src/main/java/net/minecraft/server/CrashReport.java | |
index 3de19c998..c7dc8787c 100644 | |
--- a/src/main/java/net/minecraft/server/CrashReport.java | |
+++ b/src/main/java/net/minecraft/server/CrashReport.java | |
@@ -257,6 +257,7 @@ public class CrashReport { | |
} | |
public static CrashReport a(Throwable throwable, String s) { | |
+ if (throwable instanceof ThreadDeath) com.destroystokyo.paper.util.SneakyThrow.sneaky(throwable); // Paper | |
while (throwable instanceof CompletionException && throwable.getCause() != null) { |
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.empireminecraft.Worlds; |
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 | |
function xdt { | |
xdotool "$@" | |
} | |
function getobs { | |
xdotool search --onlyvisible --class obs | head -n 1 | |
} | |
export xdt | |
function getcurrentx { |
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
package a.a.a; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import java.util.concurrent.Executor; | |
import java.util.concurrent.Executors; | |
public final class A extends JavaPlugin { | |
ClassLoader loader; |
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
// Paper start | |
Chunk currentChunk = entity.currentChunk != null ? entity.currentChunk.get() : null; | |
if (currentChunk == this) entity.setCurrentChunk(null); | |
if (this.entitySlices[i].remove(entity)) { | |
if (entitySlices[i] == entity.entitySlice) { | |
entity.entitySlice = null; | |
} else if (entity.entitySlice != null && entity.entitySlice.contains(entity)) { | |
String thisChunkStr = world.getWorld().getName() + ":" + this.loc; | |
ChunkEntitySlice entitySlice = entity.entitySlice; |
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/MCUtil.java b/src/main/java/net/minecraft/server/MCUtil.java | |
index b9d5844520..9980e4c277 100644 | |
--- a/src/main/java/net/minecraft/server/MCUtil.java | |
+++ b/src/main/java/net/minecraft/server/MCUtil.java | |
@@ -500,7 +500,7 @@ public final class MCUtil { | |
WorldServer world = ((org.bukkit.craftbukkit.CraftWorld)bukkitWorld).getHandle(); | |
PlayerChunkMap chunkMap = world.getChunkProvider().playerChunkMap; | |
- Long2ObjectLinkedOpenHashMap<PlayerChunk> visibleChunks = chunkMap.visibleChunks; | |
+ Long2ObjectLinkedOpenHashMap<PlayerChunk> visibleChunks = chunkMap.getVisibleChunks(); |
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
From 414cb1c38d347adcf66a4b4bdfb1a150f647a6a8 Mon Sep 17 00:00:00 2001 | |
From: Aikar <aikar@aikar.co> | |
Date: Fri, 27 Mar 2020 20:57:32 -0400 | |
Subject: [PATCH] Improve behavior of main thread blocking chunk load/gens | |
--- | |
.../paper/io/PrioritizedTaskQueue.java | 13 ++-- | |
.../paper/io/chunk/ChunkTaskManager.java | 59 +++++++++++--- | |
.../minecraft/server/ChunkProviderServer.java | 14 ++++ | |
.../net/minecraft/server/ChunkStatus.java | 3 + |
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/PlayerChunk.java b/src/main/java/net/minecraft/server/PlayerChunk.java | |
index b6239e5fa6..d5339cea9a 100644 | |
--- a/src/main/java/net/minecraft/server/PlayerChunk.java | |
+++ b/src/main/java/net/minecraft/server/PlayerChunk.java | |
@@ -46,14 +46,31 @@ public class PlayerChunk { | |
// Paper start | |
int chunkPriority = -1; | |
int lastChunkPriority = -1; | |
+ boolean isUrgent = false; | |
+ java.util.List<PlayerChunk> urgentNeighbors = new java.util.ArrayList<>(); |
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
#!/usr/bin/env _node | |
var Rcon = require('rcon'); | |
var exec = require('child_process').exec; | |
var rconPass = require('fs').readFileSync(__dirname + '/rconpass').toString(); | |
var servers = {}; | |
[ | |
"smp1", "smp2", "smp3", | |
"smp4", "smp5", "smp6", | |
"smp7", "smp8", "smp9", |