-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to correct server jar location in ReobfServer
- Loading branch information
1 parent
f66cab5
commit ff6e57e
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
46 changes: 46 additions & 0 deletions
46
src/main/java/net/unknown/launchwrapper/mixins/MixinReobfServer.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (c) 2023 Unknown Network Developers and contributors. | ||
* | ||
* All rights reserved. | ||
* | ||
* NOTICE: This license is subject to change without prior notice. | ||
* | ||
* Redistribution and use in source and binary forms, *without modification*, | ||
* are permitted provided that the following conditions are met: | ||
* | ||
* I. Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* | ||
* II. Redistributions in binary form must reproduce the above copyright notice, | ||
* this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* III. Neither the name of Unknown Network nor the names of its contributors may be used to | ||
* endorse or promote products derived from this software without specific prior written permission. | ||
* | ||
* IV. This source code and binaries is provided by the copyright holders and contributors "AS-IS" and | ||
* any express or implied warranties, including, but not limited to, the implied warranties of | ||
* merchantability and fitness for a particular purpose are disclaimed. | ||
* In not event shall the copyright owner or contributors be liable for | ||
* any direct, indirect, incidental, special, exemplary, or consequential damages | ||
* (including but not limited to procurement of substitute goods or services; | ||
* loss of use data or profits; or business interruption) however caused and on any theory of liability, | ||
* whether in contract, strict liability, or tort (including negligence or otherwise) | ||
* arising in any way out of the use of this source code, event if advised of the possibility of such damage. | ||
*/ | ||
|
||
package net.unknown.launchwrapper.mixins; | ||
|
||
import net.unknown.launchwrapper.Main; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Overwrite; | ||
|
||
import java.nio.file.Path; | ||
|
||
@Mixin(targets = "io.papermc.paper.pluginremap.ReobfServer") | ||
public class MixinReobfServer { | ||
@Overwrite | ||
private static Path serverJar() { | ||
return Main.SERVER_JAR; | ||
} | ||
} |
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