Skip to content

Commit

Permalink
Merge pull request #248 from NotEnoughUpdates/master
Browse files Browse the repository at this point in the history
NEU 2.1 🙂
  • Loading branch information
Moulberry authored Mar 3, 2022
2 parents b117429 + db59eba commit 7c6d37b
Show file tree
Hide file tree
Showing 378 changed files with 73,633 additions and 59,694 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{java,kts}]
indent_style = tab
tab_width = 2
55 changes: 37 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,60 @@ name: Build

on:
push:
branches: [ master ]
branches:
- '*'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
pull_request:
branches: [ master ]
branches:
- '*'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
workflow_dispatch:
jobs:
build:

env:
GIT_URL: ${{ github.server_url }}/${{ github.repository }}/tree/${{ github.sha }}
REF_NAME: ${{ github.ref_name }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
ACTOR: ${{ github.actor }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: actions/cache@v2
- name: Send discord notification
id: sendmsg
if: ${{ env.WEBHOOK_URL }}
run: |
./.github/workflows/send_webhook_update.sh
env:
STATUS: WORKING
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
java-version: 8
distribution: zulu
cache: gradle
- name: Build with Gradle
run: ./gradlew build --no-daemon
run: chmod +x ./gradlew && ./gradlew setupCIWorkspace build --no-daemon
- uses: actions/upload-artifact@v2
with:
path: build/libs/*.jar
path: build/libs/*-dep.jar
- name: Update discord notification
if: ${{ env.WEBHOOK_URL && success() }}
run: |
./.github/workflows/send_webhook_update.sh
env:
STATUS: SUCCESS
MESSAGE_ID: ${{ steps.sendmsg.outputs.MESSAGE_ID }}
- name: Update discord notification
if: ${{ env.WEBHOOK_URL && failure() }}
run: |
./.github/workflows/send_webhook_update.sh
env:
STATUS: FAILURE
MESSAGE_ID: ${{ steps.sendmsg.outputs.MESSAGE_ID }}
88 changes: 88 additions & 0 deletions .github/workflows/send_webhook_update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
#!/bin/bash
set -x

COLOR_SUCCESS=8040199
COLOR_WORKING=7472302
COLOR_ERROR=14960972
case "$STATUS" in
WORKING)
color="$COLOR_WORKING"
status_message="Build started."
;;
FAILURE)
color="$COLOR_ERROR"
status_message="Build failed."
;;
SUCCESS)
color="$COLOR_SUCCESS"
status_message="Build succeeded."
to_upload=$(echo build/libs/*-dep.jar)
upload_name=NotEnoughUpdates-beta-dep.jar
;;
esac

author_name="$ACTOR"
commit_hash=$(git log -1 --pretty=format:'%h')
commit_subject=$(git log -1 --pretty=format:'%s')
commit_body=$(git log -1 --pretty=format:'%b')
commit_date=$(git log -1 --pretty=format:'%ct')

author_avatar="https://github.com/$author_name.png"

#language=json
read -r -d '' structure <<-"EOF"
{
"content": $status,
"username": $username,
"avatar_url": $avatar_url,
"embeds": [
{
"color": $color,
"url": $url,
"title": $subject,
"description": $body,
"footer": {
"text": $ref
}
}
],
"allowed_mentions": {
"parse": []
}
}
EOF
json=$(jq -n \
--arg body "$commit_body" \
--arg status "$status_message" \
--arg subject "$commit_subject" \
--arg username "$author_name" \
--arg avatar_url "$author_avatar" \
--argjson color "$color" \
--arg url "$GIT_URL" \
--arg ref "$REF_NAME" \
"$structure")

function make_request() {
if [ "$to_upload" != "" ]; then
upload_arg="-F"
fi
curl -X $1 -H "Content-Type: multipart/form-data" -F "payload_json=$json" "$upload_arg" "$upload_name=@$to_upload" "$WEBHOOK_URL$2?wait=true"
}

echo "Should replace message with id: $MESSAGE_ID"
if [ "$MESSAGE_ID" != "" ]; then
discord_output=$(make_request PATCH "/messages/$MESSAGE_ID")
RESULT=$?
else
discord_output=$(make_request POST)
RESULT=$?
fi

if [ $RESULT != 0 ]; then
echo "$discord_output"
exit 1
fi
echo "Message sent to discord."
echo "$discord_output" | jq .
id_string=$(echo "$discord_output" | jq .id)
echo "::set-output name=MESSAGE_ID::${id_string//\"/}"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ out
*.ipr
*.iws
*.iml
.idea
.idea/*
!.idea/codeStyles

# gradle
build
Expand Down
55 changes: 55 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
<a href="https://discord.gg/moulberry" target="_blank">
<img src="https://img.shields.io/discord/516977525906341928?label=discord&color=informational&logo=Discord&logoColor=FFFFFF" alt="discord">
</a>
<!-- patreon -->
<a href="https://www.patreon.com/moulberry" target="_blank">
<img src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dmoulberry%26type%3Dpatrons&logoColor=FFFFFF&color=informational" alt="patreon">
<!-- downloads -->
<a href="https://github.com/Moulberry/NotEnoughUpdates/releases" target="_blank">
<img src="https://img.shields.io/github/downloads/Moulberry/NotEnoughUpdates/total?label=downloads&color=informational&logo=GitHub" alt="downloads">
</a>
</p>

Expand Down Expand Up @@ -76,4 +76,4 @@ NotEnoughUpdates (NEU) is a feature rich 1.8.9 Minecraft forge mod for Hypixel S
- A custom enchanting table GUI.
- Slot Locking
- Fishing Particle customization & alerts.
- And much, much, more.
- And [much, much, more.](https://gist.github.com/jani270/d33e249d40b0333b87ba5c5e70fca398)
89 changes: 89 additions & 0 deletions Update Notes/2.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# These are the change notes for NEU 2.1 REL

### **Major Changes**
- Added mining skill overlay
- Added fishing skill overlay
- Added combat skill overlay
- Added slayer overlay
- [Added mining tab in /pv](https://cdn.discordapp.com/attachments/832652653292027904/903619242384056370/unknown.png)
- Big thanks to kwev1n for some math and jani for the texture
- Added blocking clicks back to the enchanting minigames (because apparently, it's not bannable?)
- [Donpireso replied to a sba dev's email about some of sba features, and it seems to imply that blocking clicks in guis aren't bannable](https://cdn.discordapp.com/attachments/823769568933576764/906101631861526559/unknown.png)
- Fixed pet overlay not updating when going into /pets
- [Added an armor overlay for the new armor slots](https://cdn.discordapp.com/attachments/832652653292027904/922399046528794634/unknown.png)
- Added a pet overlay that shows your active pet in your inventory
- [Price graph for items on /ah and /bz](https://cdn.discordapp.com/attachments/896407218151366687/926968296929107999/unknown.png) - DeDiamondPro
### **Minor Changes:**
- Add built-in recipes for forge crafts - nea89
- Add Stranded Villager Trades to the item list - nea89
- Make cata xp in /pv be calculated on how many runs you have and shows master mode xp rates
- Added a config option to hide Dwarven Mines waypoints when already at the location - Lulonaut
- Added some info panels to some settings in /neu
- Added Kat Level After Upgrade Estimator - nea89
- Added /pv button in /neu
- Added pitch and coins/m as options in farming skill overlay
- Make it so tab completion in ah search GUI goes down the items - Lulonaut
- Added a toggle for enchant glint in storage gui (ty ery for texture)
- Added fairy souls option to /neu misc
- Make it so fairy souls are tracked independently for each profile - Lulonaut
- Added a button in the storage gui to open the settings
- Added an option to change the click names for /pv to /ah
- Added a help menu to /neuec
- Made it so treecap shows foraging xp instead of farming xp on the farming overlay
- Made it so a jungle axe with cult will show the "farming" overlay
- Added /neurepomode to toggle item editing and dev mode
- Changed "NEUAH is DISABLED! Enable in /neusettings." to /neu
- Changed misc overlays tab to todo overlays
- Added a config option for npc retexturing
- Added a config option for dirt wand overlay
- Added a config option for hoe of tilling
- Added an option to use short numbers (1.5mil) for price tooltips
- Added Drills and Gauntlet to the itemlist tools category - jani
- Added an option to turn off showing next click in chronomatron
- Turns off inv search mode after 2 minutes
- Made /neustats modlist show normal /neustats if under 15 mods
- Added max enchant book to /neuec - Dokm
- [Added bingo and Stranded profile icons to /pv](https://cdn.discordapp.com/attachments/832652653292027904/915844465372065842/unknown.png)
- Added an icon if neu doesn't know about a gamemode in /pv
- Fixed pet overlay not resetting pet when making new profile
- Added a warning in the tooltip when price info couldn't be found/is outdated - Lulonaut
- Added "Has Advanced Tab" to /neustats
- Added custom runes and crab hat system - jani
- Removed unused textures
- Added total xp if player is above cata 50 in /pv - efefury
- Added daily powder to todo overlay - efefury
- Added a way to include kismet feather to profit calculator - efefury
- Added custom sounds for crystal hollow gemstones - nea89
- Added custom biomes for crystal hollow areas - nopo
- Added a config option to hide the reforge stats for Legendary items from Hypixel on reforge stones - Lulonaut
### **Bug Fixes**
- Fix wiki pages freezing the entire game - nea89
- Made titanium overlay and waypoints work with dwarven overlay off
- "fixed" divan rarity in NEUAH (scuffed)
- Made etherwarp block overlay config option
- Fixed ram usage in crystal hollows - Dokm
- Made skills not show int limit when at max level in skill overlays
- Fixed space cape texture - Microcontrollers
- Make it so you can hold down keys in sign GUIs
- Added entrance to "floor one" + made blur limit at 100
- Fixed screenshot key in /et overlay
- Fixed api key autofill with dg copy chat feature
- Made missing enchants not show on an item if its not missing any enchants
- Fixed Mining overlay crash - Dokm
- Fixed pet crash - Dokm
- Fixed fetchur for the 75th time
- [Made an error if you have new tab list off](https://cdn.discordapp.com/attachments/896407218151366687/913681097605398528/unknown.png)
- Fixed lava fishing with the fishing alert
- Fixed /locraw detection, [previously allowed chat messages to trigger it](https://github.com/NotEnoughUpdates/NotEnoughUpdates/issues/35) - IRONM00N
- Fixed experiment timer in todo overlay - efefury
- Fixed replace click events with /pv working in other modes
- Fixed /neuec presets not applying the strikethrough attribute - Lulonaut
### **Other**
- New icons was added in storage_icons.png
- Moved the help icon in /neucustomize over a little
- Added dg partner cape
- Changed custom_enchant_gui.png to remove top right button
- Added 4 new textures for the on/off switches in /neu
- Code Cleanup - IRONM00N
### **Previous change log**
https://github.com/NotEnoughUpdates/NotEnoughUpdates/blob/master/Update%20Notes/2.0-Pre31-Release.md
Loading

0 comments on commit 7c6d37b

Please sign in to comment.