Merge branch 'master' into pre/1.13
* master: Duplicate UUID Resolve Option Add more information to Entity.toString change LAST_EDIT to PAPER_LAST_EDIT for edit commands Add more information to Entity.toString() Add Debug Entities option to debug dupe uuid issues Guard the Entity.SHARED_RANDOM from seed changes Create a symlink on not-windows to current minecraft decompile dir
This commit is contained in:
commit
6b63a88df0
10 changed files with 397 additions and 33 deletions
|
@ -6,9 +6,9 @@ PS1="$"
|
|||
basedir="$(cd "$1" && pwd -P)"
|
||||
workdir="$basedir/work"
|
||||
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||
windows="$([[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]] && echo "true" || echo "false")"
|
||||
decompiledir="$workdir/Minecraft/$minecraftversion"
|
||||
classdir="$decompiledir/classes"
|
||||
|
||||
echo "Extracting NMS classes..."
|
||||
if [ ! -d "$classdir" ]; then
|
||||
mkdir -p "$classdir"
|
||||
|
@ -30,4 +30,13 @@ if [ ! -d "$decompiledir/net/minecraft/server" ]; then
|
|||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# set a symlink to current
|
||||
currentlink="$workdir/Minecraft/current"
|
||||
if ([ ! -e "$currentlink" ] || [ -L "$currentlink" ]) && [ "$windows" == "false" ]; then
|
||||
echo "Pointing $currentlink to $minecraftversion"
|
||||
rm -rf "$currentlink"
|
||||
ln -sfn "$minecraftversion" "$currentlink"
|
||||
fi
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue